<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">


    <title>嘴硬 - 点点约玩</title>
    <meta itemprop="name" content="嘴硬"/>
    <meta itemprop="image" content="https://ucavatar.tuwan.com/data/avatar/001/35/59/90_avatar_middle.jpg?random=20181229" />
    <meta name="description" itemprop="description" content="我是嘴硬，我在点点约玩等你" />
    <link href="/css/common_index_1.css" type="text/css" rel="stylesheet">
    <link href="/css/teacher.css" type="text/css" rel="stylesheet">
    <link href="/css/daterange.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" type="text/css" href="/css/jquery.fancybox.css" media="screen" />
    <script src="/js/jquery-1.7.2.min.js"></script>
    <script src="/js/bootstrap-datetimepicker.js"></script>
    <script src="/js/bootstrap-datetimepicker.zh-cn.js"></script>
    <script type="text/javascript" src="/js/s.js" charset="gb2312"></script>
    <script>


        $.ajax({
            url: "https://y.tuwan.com/m/Lists/getBlackList",
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                for (var i = obj.data.length - 1; i >= 0; i--) {
                    if('1355990'==obj.data[i]){
                        $('.money_pocket_bg').addClass('money_pocket_bg_offline');
                        $('.money_pocket_bg').text('离线');
                    }
                }
            }
        })

        var audio, isPlaying=false;
        // var audioClearInterval = 0;
        var totalPlayTime = 0;

        initAudio();
        function initAudio(){
            audio = new Audio();


            audio.addEventListener("pause",
                function() { //监听暂停
                    isPlaying = false;
                    // clearInterval(audioClearInterval)
                    $("#spanTime").text(totalPlayTime);
                    audio.pause();
                }, false);
            audio.addEventListener("play",
                function() { //监听暂停
                    if(!isPlaying){
                        // console.info("暂停了");
                        // clearInterval(audioClearInterval)
                        $("#spanTime").text(totalPlayTime)
                        audio.pause();
                    }
                }, false);
            audio.addEventListener("ended", function() {
                isPlaying = false;
                $("#spanTime").text(totalPlayTime)
            }, false)


        }
        function formatTime(mp3){
            if(mp3 < 10){
                mp3 = '00:0'+mp3;
            }else if(mp3 > 9 && mp3 < 60){
                mp3 = '00:'+mp3;
            }
            return mp3;
        }

        function playAudio(that) {
            // console.info(audioClearInterval);
            if(isPlaying){
                // clearInterval(audioClearInterval);
                audio.pause();
                isPlaying = false;
            }
            else{
                // var audio = new Audio($(that).attr("data-music"));
                audio.src = $(that).attr("data-music");
                var durationSpan = $(that).find("span");

                if(isPlaying){
                    isPlaying = false
                }
                else{
                    isPlaying = true;
                }

                audio.addEventListener('canplay',function(){

                    var mp3 = Math.ceil(this.duration);
                    durationSpan.text(mp3/*formatTime(mp3)*/);
                    // audio.play();

                    var duration = mp3;
                    totalPlayTime = mp3;
                    var audioClearInterval = setInterval(function(){
                        if(!isPlaying){
                            clearInterval(audioClearInterval);
                            return;
                        }
                        duration = duration-1;
                        if(duration<0){
                            // clearInterval(audioClearInterval)
                            return;
                        }
                        durationSpan.text(duration);
                    },1000)
                });
                audio.play();
            }

        }
        function imgNoFound(that) {
            that.src="https://uc.tuwan.com/images/noavatar_2.jpg";
            that.onerror=null;
        }
    </script>
    <style type="text/css">
        .gift_code{position: absolute;bottom: -23px;right: 0px;color: #ffffff;text-shadow: 0 0 0.2em #333, 0 0 0.2em #333;font-weight: bold;font-size: 12px;}


        .table_time{
            z-index: 5;
        }
        .discount_show_tab{
            color:#ff9b00;
            font-size: 12px;
            display: inline-block;
            position: relative;
        }
        .discount_show_tab_content_item span{
            font-weight: bold;
            margin:0 5px;
        }
        .discount_show_tab_title{
            border: 1px solid #ff9b00;

            cursor: pointer;
            display: inline-block;
            height: 20px;
            line-height: 20px;
            padding:0  9px ;
            position: relative;
            top:1px;
            z-index: 3;
        }
        .discount_show_tab_content{
            position: absolute;
            display: none;
            padding: 15px 10px;
            border: 1px solid #ff9b00;
            max-width: 230px;
            right: 0;
            margin-top: -6px;
        }

        .discount_show_tab:hover .discount_show_tab_title {
            border-bottom-color:#fff;
        }
        .discount_show_tab:hover .discount_show_tab_content{
            background: #fff;
            display: block;
        }
        .discount_show_tab_content_item{
            width: 230px;
            border-radius: 4px;
            border: 1px dashed #ffdfaf;
            background-color: #fff9ed;
            text-align: center;
            padding: 10px 0;
            margin-bottom: 5px;
            color:#ff5a00;
        }

        .discount_show_tab_arrow{
            display: inline-block;
            transform: scaleX(1.5) rotate(90deg);

        }

        .discount_show_tab:hover .discount_show_tab_arrow{
            transform: scaleX(1.5) rotate(-90deg);
        }

        .discount_show_tab2:hover .discount_show_tab_title {
            border-bottom-color:#ff9b00;
        }
        .discount_show_tab2 .discount_show_tab_title{
            border-radius: 4px;
            height: 23px;
            line-height: 23px;
        }
        .discount_show_tab2  .discount_show_tab_content{
            margin-top: 5px;
            width: 249px;
            background: #fff;
            left: -68px;
            top: 30px;
            border:0;
            border-top: 2px solid #ff5400;
            box-shadow: 0 3px 3px rgba(0,0,0,.3);
            border-radius: 0 0 8px 8px;
            padding-bottom: 10px;
        }
        .discount_show_tab2  .discount_show_tab_content::before{
            content: "";
            position: absolute;
            display: block;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 7px solid #ff5400;
            top: -7px;
            left: 50%;
            margin-left: -5px;
        }
        .order_grade_box{
            width: 340px;
        }
        .content_center_right .money_pocket_bg_offline {
            background: #999;
            border-bottom: #707070 solid 4px;
        }
        .content_center_right .money_pocket_bg_offline:hover {
            background-color: #999;
        }


        .content_left_giftlist05::-webkit-scrollbar-track {
            background-color: transparent;
        }
        .content_left_giftlist05::-webkit-scrollbar {
            width: 5px;
        }
        .content_left_giftlist05::-webkit-scrollbar-thumb {
            background-color: #ccc;
        }

        /*左边浮窗*/
        .fixed-nav-left{position: fixed;
            top: 60%;
            margin-top: -204px;
            width: 50px;
            z-index: 9999;left: 10%}
        .fixed-nav-left:hover{
            opacity: 0.8
        }
        .content_left_giftlist_nav{
            color: #333;
            cursor: pointer;
            margin: 11px 10px
        }
        .content_left_giftlist_nav_add{
            color: #fff;
        }
        .coupon_show_tab {
            color: #ff9b00;
            font-size: 12px;
            display: inline-block;
            position: relative;
        }
        .coupon_show_tab_title {
            border: 1px solid #ff9b00;
            cursor: pointer;
            display: inline-block;
            height: 20px;
            line-height: 20px;
            padding: 0 9px;
            position: relative;
            top: 1px;
            z-index: 3;
        }
        .coupon_show_tab_content{
            width:222px;
            position: absolute;
            display: none;
            padding: 15px 10px;
            border: 1px solid #ff9b00;
            right: 0;
            color:black;
            margin-top:-6px;
            background:white;
            text-align:left;
        }
        .coupon_show_tab:hover .coupon_show_tab_title{
            border-bottom:1px solid #fff;
        }
        .coupon_show_tab:hover .coupon_show_tab_content{
            display:block;
        }
        .coupon_show_tab{
            border-bottom:1px solid #fff;
        }
        .coupon_show_tab .coupon_show_tab_title:hover #font_rotate{
            transform:rotate(-90deg);
        }
        .isuse_coupon{
            height:115px;
            border:3px solid #fff;
        }
        .isuse_coupon div:first-child{

            height:78px;
            background:#fc8888;
            color:white;
            padding-left:9px;
        }
        .isuse_coupon div:last-child{
            color:#fbaeae;
            padding-left:9px;
        }
        .isuse_coupon2{
            width:218px;
        }
        .isuse_coupon2 div:first-child{
            height:67px;
            background:#fc8888;
            padding-left:9px;
            color:white;
            border:1px solid #fff;
        }
        .isuse_coupon2 div:last-child{
            background:#fff;
            padding-left:9px;
            color:#fbaeae;
        }
        .usecoupon:hover{
            cursor:pointer;
        }
        div.checkedclass{
            border:solid 3px #fc5645;
            background: url(./static/images/yesicon.png) no-repeat right bottom;
        }
        input.chk-nouse{
            float: left;
            margin-top: 10px;
        }
        .order_textarea{
            height: 50px;
        }
        .content_center_left .content_left_top_big_img .fancybox{
            display:inline-block;
            width:100%;
            height:100%
        }

        .content_center_left .content_left_top_big_img{
            text-align:center;
        }




        .div-img-thumb {
            float: left;
            width: 400px;
            height: 400px;
            position: relative;
        }
        .div-img-thumb img {
            width: 100%;
            height: 100%;
        }
        .teacherthumb-video {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 1;
            left: 0;
            top: 0;
            cursor: pointer;
            background: url(./static/images/playicon.png) no-repeat center center rgba(0,0,0,0.4);
        }
        .videoFloat {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 300;
            display: none;
        }
        .videoFloat .video-close {
            position: absolute;
            width: 46px;
            height: 46px;
            border: solid 2px #555455;
            right: 20px;
            top: 20px;
            border-radius: 46px;
            background:url(./static/images/closeicon.png) no-repeat center center #000;
            z-index: 9;
            cursor: pointer;
        }
        .videoFloat video {
            max-height: 90%;
            max-width: 90%;
            min-width: 40%;
            min-height: 40%;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }


        .sp_content{
            height:100px;
        }

        .tips_gift_pirce_text{
            position: absolute;
            top: -70px;
            left: -35px;
            z-index: 22;
            font-size: 12px;
            width: 120px;
            background-color: #c3ac86;
            padding: 10px 5px;
            line-height: 20px;
            text-align: left;
            width:130px;
            height:60px;
        }
        .tips_gift_pirce{
            position: absolute;
            left: 21px;
        }

        .tips_box{
            position: absolute;
            display:none
        }




    </style>
</head>
<body>
<div class="pop_gift" style="display:none"><img src=""><span>x1</span></div>
<script src="/js/json2.js"></script>
<script src="/js/jsencrypt.min.js"></script>
<script src="/js/getrsakey.js"></script>
<script src="/js/function.js"></script>
<script src="/js/encryption.js"></script>
<script src="/js/securelogin.js"></script>
<script src="/js/securereg.js"></script>
<script src="/js/sendtgid.js"></script>
<script src="/js/gt.js"></script>
<!-- <script charset="utf-8" src="js/kfqq.js"></script> -->
<link rel="stylesheet" href="/css/common_index_1.css" type="text/css">
<link rel="stylesheet" href="/css/top_footer.css" type="text/css">
<link rel="stylesheet" href="/css/geeteststyle.css" type="text/css">
<link rel="stylesheet" href="/css/common_head.css" type="text/css">
<!--登录样式 start-->
<style type="text/css">
    /*声优右边浮窗*/
    .audio_right {
        position: fixed;
        bottom: 3%;
        right: 1%;
        z-index: 3;
    }

    .audio_close {
        float: right;
        position: absolute;
        margin-top: 24px;
        margin-left: 268px;
        cursor: pointer;
        color: #333;
        font-size: 30px;
    }

    #common_top_box .common_payfor {
        padding: 2px 5px;
    }

    #common_top_box .common_top_nav {
        margin-right: 26px;
    }

    @media all and (max-width: 1366px) {

        #common_top_box .common_right {
            margin-left: 16px;
        }
    }
</style>
<input type="hidden" value="1" id="checkall_name">
<input type="hidden" value="1" id="checkall_phone">
<input type="hidden" value="1" id="checkall_pwd">
<input type="hidden" value="1" id="checkall_code">
<div id="captcha"></div>
<div id="index_pup_box" style="display: none;">
    <div class="entry_pop_bg"></div>
    <div class="entry_pop_box">
        <div class="entry_pop_content">
            <div class="enroll_box">
                <div class="fl">
                    <div class="fl enroll enroll_add">登录</div>
                    <div class="fl enroll">注册</div>
                    <div class="clearfix"></div>
                </div>
                <div class="fr close">
                    <div class=" layer-cell-close"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <!--<div class="fl" style="width:430px;">
                <div class="enroll_content">
                    <div class="register_box">
                        <div class="register">
                            <label> 账号</label>
                            <input type="text" placeholder="请输入用户名/手机号" id="username" required>
                            <div class="dislocation dislocation_02 usernameMsg"></div>
                        </div>
                        <div class="register">
                            <label>密码</label>
                            <input type="password" id="pwd" placeholder="请输入密码" required>
                            <div class="dislocation dislocation_02 passwordMsg"></div>
                        </div>
                        <div class="register">
                            <label>验证码</label>
                            <input type="text" placeholder="验证码" required id="check" class="yanzheng identifying" required>
                            <div class="dislocation dislocation_04 codeMsg"></div>
                            <a style="padding-left: 20px" href="javascript:;" onclick="loadcode('code', 82, 30);"><img id="code" src="picture/action.ashx"></a>
                        </div>
                    </div>

                    <div class="voluntarily_box">
                        <input type="checkbox" checked class="fl voluntarily01"><span></span>
                        <div class="fl voluntarily02">下次自动登录</div>
                        <a href="//user.tuwan.com/resetpwd/" target="_blank" title="忘记密码？">
                            <div class="fr voluntarily03">忘记密码?</div>
                        </a>
                    </div>
                    <button class="identif_go mt35" id="button_post" onclick="check_login()">登录</button>
                </div>
                <div class="enroll_content" style="display: none;">
                    <div class="register_box">
                        <div class="register">
                            <label> 手机</label>
                            <input type="text" placeholder="请输入手机号" required id="ctl00_mainContent_txt_phone">
                            <div class="dislocation dislocation_01" id="phone_tishi"></div>
                        </div>
                        <div class="register">
                            <label>用户名</label>
                            <input type="text" placeholder="请输入用户名" required id="user_name">
                            <div class="dislocation dislocation_02" id="username_tishi"></div>
                        </div>
                        <div class="register">
                            <label>密码</label>
                            <input type="password" placeholder="请输入密码" required id="userpwd">
                            <div class="dislocation dislocation_03" id="userpwd_tishi"></div>
                        </div>
                        <div class="register">
                            <label>验证码</label>
                            <input type="password" placeholder="验证码" class="identifying yanzheng" required id="phonecode">
                            <div class="dislocation dislocation_0aa dislocation_04"></div>
                            <button class="identif yanzheng_02" id="getcode">获取验证码</button>
                        </div>
                    </div>
                    <input type="radio" class="fl radio_01" checked="checked" required>
                    <div class="radio_box fl"><span>已阅读并同意</span>《兔玩网用户使用协议》</div>
                    <div class="clearfix"></div>
                    <button class="identif_go mt35" id="button_post1">注册</button>
                </div>

            </div>-->
            <div class="fr entry_wbox mt50">
                <div class="entry_01">第三方账号登录</div>
                <a class="Wechat" href="javascript:;">
                    <div class="entry_w"><img src="/picture/entry_w.png">&nbsp;微信账号登录</div>
                </a>
                <a class="QQ" href="javascript:;">
                    <div class="entry_qq"><img src="/picture/entry_qq.png">&nbsp;QQ账号登录</div>
                </a>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
<!-- 登录 end -->
<div id="common_top_box">
    <div class="fl common_top_logo" style="margin-left: 78px;margin-left: calc((100% - 1366px)/6.9);">
        <a href="https://y.tuwan.com/">
            <img src="/picture/yuewanlogo.png">
        </a>
    </div>
    <div class="fl common_center_box">
        <a href="//y.tuwan.com" target="_blank" class="fl common_top_nav">首页</a>
        <a href="//y.tuwan.com/playlist/" target="_blank" class="fl common_top_nav">约陪玩</a>
        <!-- <a href="//y.tuwan.com/starplay" target="_blank" class="fl common_top_nav">明星陪玩</a> -->
        <a href="//t.tuwan.com?tuwan" target="_blank" class="fl common_top_nav">训练营</a>
        <a href="//y.tuwan.com/99/" target="_blank" class="fl common_top_nav">9.9专区</a>
        <!-- <a href="//y.tuwan.com/fanli7/" target="_blank" class="fl common_top_nav" style="color: #ff0000; position: relative;">充值</a> -->
        <a href="//y.tuwan.com/recharge/" target="_blank" class="fl common_top_nav" style="color: #ff0000; position: relative;">充值</a>
        <a href="//y.tuwan.com/download/" target="_blank" class="fl common_top_nav">
            <div class="common_wechat_box">
                APP下载
                <!-- <img src="picture/hot.png" class="hot_img"> -->
                <div class="common_wechat" style="background: none; border:none; top: 20px; left: -152px; width: 338px;">
                    <img src="picture/ewms.png">
                </div>
            </div>
        </a>
        <div class="search_box fl">
            <div class="search_img_box">
                <input type="text" placeholder="搜索昵称、uid、靓号" class="search_input">
                <img style="right: 6px;" src="picture/search.png" class="search_img">
            </div>
        </div>
    </div>
    <div class="fl common_right mt15">
        <a class="fl common_right_01 common_right_enter" id="apply">申请入驻</a>
        <a class="fl common_right_01  common_right_hover" href="https://y.tuwan.com/chatroom" target="_blank">
            <img src="/picture/chaticon.png" class="qt">
            <img src="/picture/chaticon_hover.png" style="display: none;" class="qt_hover">
            <br>
            约玩大厅
        </a>
        <div class="common_right_02 fl"></div>
        <a class="fl common_right_01  common_right_hover" href="//y.tuwan.com/home/msg/" target="_blank">
            <img src="/picture/message.png" class="qt">
            <img src="/picture/message_hover.png" style="display: none;" class="qt_hover">
            <br>
            消息中心
            <div class="common_message" style="display:none;"></div>
        </a>
        <div class="common_right_02 fl"></div>
        <div class="fl">
            <a href="javascript:;" class="common_right_01 common_right_hover" style="display: none;" id="loginfalse">
                <img src="/picture/no_login.png" class="qt">
                <img src="/picture/no_login_hover.png" style="display: none;" class="qt_hover">
                <br>
                注册/登录
            </a>
            <div class="head_img_bigbox" id="logintrue">
                <div class="head_img_hide_box">
                    <a href="" class="ocenter_order" target="_blank">
                        <div class="fl head_img_box"></div>
                        <div class="fl ml10">
                            <div>
                                <div class="fl common_head_name nickname mr10" style="width:60px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"></div>
                                <div class="fl mr10 common_head_name liangcode22" style="display:none;"><img src="picture/good.png"></div>
                                <div class="fl common_runk_number" style="display:none;">

                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="common_head_id"><span class="mr5 user_uid"></span><img src="picture/common_bottom.png"></div>
                        </div>
                    </a>
                    <div class="clearfix"></div>
                </div>
                <div class="common_login">
                    <div class="common_wechat_img"><img src="picture/common_top.png"></div>
                    <div>
                        <div class="drop_out" id="dologout">退出</div>
                        <div class="clearfix"></div>
                        <a href="" class="ocenter_order" target="_blank">
                            <div class="head_img_small"></div>
                        </a>
                        <div class="hide_common mt5 mb5 nickname"></div>
                        <div class="fl common_runk_number  common_runk_number_01"></div>
                        <a class="means_box fl ml10 mr10" href="" target="_blank"><img src="picture/means.png" class="means"><img src="picture/means_hover.png" class="means_hover">&nbsp;资料</a>
                        <a class="order_box fl" href="//y.tuwan.com/home/ocenter/" target="_blank"><img src="picture/order.png" class="order"><img src="picture/order_hover.png" class="order_hover">&nbsp;订单</a>
                        <div class="clearfix"></div>
                        <div class="contribution_value mt15 mb10"></div>
                        <div class="common_vip_box">
                            <div class="common_vip_line_box">
                                <div class="common_vip_line"></div>
                            </div>
                            <div class="fl vip_text v_top"></div>
                            <div class="fr vip_text v_bottom"></div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="money_01_bigbox mt20">
                            <a href="//y.tuwan.com/recharge/" target="_blank">
                                <div class="fl money_01_box">
                                    <div class="current_money"></div>
                                    <div class="money_01"><img src="picture/money_01.png">&nbsp;账户余额</div>
                                </div>
                            </a>
                            <a href="https://y.tuwan.com/recharge/" target="_blank">
                                <div class="fl money_01_box">
                                    <div class="current_value"></div>
                                    <div class="money_01"><img src="picture/zuanshi.png">&nbsp;<span class="current_value_info"></span></div>
                                </div>
                            </a>
                            <a class="fl common_payfor" href="//y.tuwan.com/recharge/" target="_blank">
                                充值
                            </a>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<script type="text/javascript">
    var nianguan = "♕"
    $(".common_right_hover").hover(
        function() {
            $(this).find(".qt").hide();
            $(this).find(".qt_hover").show();
            $(this).addClass("common_right_01_add")
        },
        function() {
            $(this).find(".qt_hover").hide();
            $(this).find(".qt").show();
            $(this).removeClass("common_right_01_add")
        }
    );
    $(".common_wechat_box").hover(
        function() {
            $(".common_wechat").stop().slideDown("fast");
        },
        function() {
            $(".common_wechat").stop().slideUp("fast");
        }
    );
    $(".head_img_bigbox").hover(
        function() {
            $(".common_login").stop().slideDown("fast");
        },
        function() {
            $(".common_login").stop().slideUp("fast");
        }
    );

    $('.landing_box').hover(function() {
        $('.down_nav').stop().slideUp();
        $('.develop_nav').stop().slideDown();

    }, function() {
        $('.develop_nav').stop().slideUp();
        $('.down_nav').stop().slideDown();
    })
    $('#getcode').focus(function() {
        $('.dislocation_01').html('');
    })

    var n = 0;
    $(".bottom_border").click(function() {

        $(this).addClass("bottom_add").siblings().removeClass("bottom_add");
        n = $(".bottom_border").index(this);
        $(".student").eq(n).show().siblings().hide();
    })

    function check_login() {
        var username = $('#username').val();
        var pwd = $('#pwd').val();
        var check = $('#check').val();
        slogin(username, pwd, check, 'pc', obj);
    }

    function slogin(username, password, code, platform, callback) {

        var sendData = new Object();
        sendData.username = username;
        sendData.password = password;
        sendData.code = code;
        sendData.platform = platform;

        var content = packSendData_general(sendData);
        $.ajax({
            type: "post",
            url: "//user.tuwan.com/api/method/login",
            dataType: "jsonp",
            jsonp: "callback",
            data: { data: content },
            success: function(data) {
                var ret = data;
                if (ret.code != 0) {
                    var publicKey = (ret.data);
                }
                var code = data.code * 1;

                // callback(ret);
                if (code == 0) {
                    window.location.href = location.href;
                }
                if (code == -1003 || code == -1004) {
                    $('.passwordMsg').html(data.msg);
                }
                if (code == -1005) {
                    $('.codeMsg').html(data.msg);
                }
            }
        });
    }

    function nameFormat(objname, picsize, picmargin) {
        var user_nickname = "";
        if (objname) {
            user_nickname = objname.replace("♕", '<img style="width:' + picsize + 'px;height:' + picsize + 'px;margin-top:' + picmargin + 'px" src="picture/nianguan.gif">')
        }
        // user_nickname = user_nickname.replace("☬", '<img style="height:' + picsize + 'px;margin-top:' + picmargin + 'px" src="picture/nianduicon.png" />&nbsp;')
        return user_nickname
    }

    strhref = location.href;
    if (strhref.indexOf("?") > -1) strhref = strhref + '&success=1';
    else strhref = strhref + '?success=1';



    function obj(data) {
        if (data.code == '0') {
            window.location.href = strhref;
        }
        if (data.code == -1003 || data.code == -1004) {
            $('.passwordMsg').html(data.msg);
        }
        if (data.code == -1005) {
            $('.codeMsg').html(data.msg);
        }

    }
    // BizQQWPA.addCustom({aty: '0', a: '0', nameAccount: 800186693, selector: 'BizQQWPA'});

    function search() {
        var keyword = $.trim($(".search_input").val());
        if (keyword == '') {
            return;
        }

        var url = '//y.tuwan.com/search/?kw=' + encodeURIComponent(keyword);
        window.open(url);
    }

    function avatarNoFound(that) {
        that.src = "https://uc.tuwan.com/images/noavatar_middle.gif";
        that.onerror = null;
    }

    $('#apply').attr("flag", "0");
    $(function() {
        msg();

        function msg() {
            $.ajax({
                url: "//app.tuwan.com/Message/GetMessage.ashx?classid=2",
                dataType: 'json',
                xhrFields: {
                    withCredentials: true
                },
                crossDomain: true,
                success: function(obj) {
                    var obj = eval(obj);
                    var result = obj.result;
                    if (result == '失败') {
                        $('.common_message').hide();
                        return;
                    }
                    var TotalUnRead = result.TotalUnRead
                    if (TotalUnRead < 1) {
                        $('.common_message').hide();
                    } else {
                        $('.common_message').show();
                        $('.common_message').html(TotalUnRead);
                    }
                }
            })
        }
        $.ajax({
            url: "//api.tuwan.com/playteach/?data=getuserinfo&format=jsonp",
            type: "get",
            dataType: "jsonp",
            success: function(obj) {
                if (obj == '' || obj == undefined || obj == null) return false;
                var userinfo = obj.userinfo;
                var vipinfo = obj.vipinfo;
                var user_nickname = "";
                var currencyinfo = obj.currency;
                if (userinfo.code == 0) {
                    $('#apply').attr("href", "//y.tuwan.com/home/playerinfo/");
                    $('#apply').attr("target", "_blank");
                    $('#apply').attr("flag", "1");
                    $('.head_img_box').html('<img src="' + userinfo.data['avatar'] + '" onerror="avatarNoFound(this)">');
                    $('.head_img_small').html('<img src="' + userinfo.data['avatar'] + '" onerror="avatarNoFound(this)">');
                    if (userinfo.data['nickname'].indexOf(nianguan) == -1) {
                        user_nickname = userinfo.data['nickname']
                    } else {
                        user_nickname = userinfo.data['nickname'].split(nianguan)[0] + '<img style="width:24px;height:24px;margin-top:-7px;" src="picture/nianguan.gif">' + userinfo.data['nickname'].split(nianguan)[1]
                    }
                    // user_nickname = user_nickname.replace("☬", '<img style="width:24px;height:24px;margin-top:-7px;" src="picture/igicon1.png" />')
                    $('.nickname').html(user_nickname);
                    if (vipinfo['vip'] > 0) {
                        var vipclass = 'common_runk_01';
                        if (vipinfo['vip'] == 2) {
                            vipclass = 'common_runk_02';
                        } else if (vipinfo['vip'] == 3) {
                            vipclass = 'common_runk_03';
                        } else if (vipinfo['vip'] == 4) {
                            vipclass = 'common_runk_04';

                        } else if (vipinfo['vip'] == 5) {
                            vipclass = 'common_runk_05';

                        } else if (vipinfo['vip'] == 6) {
                            vipclass = 'common_runk_06';

                        } else if (vipinfo['vip'] == 7) {
                            vipclass = 'common_runk_07';

                        } else if (vipinfo['vip'] == 8) {
                            vipclass = 'common_runk_08';

                        } else if (vipinfo['vip'] == 9) {
                            vipclass = 'common_runk_09';

                        } else if (vipinfo['vip'] == 10) {
                            vipclass = 'common_runk_10';

                        } else if (vipinfo['vip'] == 11) {
                            vipclass = 'common_runk_11';

                        } else if (vipinfo['vip'] == 12) {
                            vipclass = 'common_runk_12';

                        }

                        $('.common_runk_number').addClass(vipclass);

                        $('.common_runk_number').show();
                    } else {
                        vipclass = 'common_runk_00';
                        $('.common_runk_number').addClass(vipclass);
                        $('.common_runk_number').show();

                    }

                    var vipdengcha = parseInt(vipinfo['lowerplayhonor']) - parseInt(vipinfo['playhonor']);
                    var vipbaofenbi = parseInt(vipinfo['playhonor']) / parseInt(vipinfo['lowerplayhonor']) * 100;
                    if (vipinfo['vip'] >= 10) {
                        $('.contribution_value').html('恭喜！您己满级');
                        $('.v_top').html('<span>VIP' + vipinfo['vip'] + '</span>');
                        $('.v_bottom').html('');
                        $('.common_vip_line').css('width', '100%');
                    } else {
                        $('.contribution_value').html('升级还需<span>' + vipdengcha + '</span>贡献值');
                        $('.v_top').html('VIP' + vipinfo['vip']);
                        $('.v_bottom').html('VIP' + vipinfo['lowerplay']);
                        $('.common_vip_line').css('width', vipbaofenbi + '%');
                    }

                    uidflag = userinfo.data['vipuserid'] > 0 ? userinfo.data['vipuserid'] : userinfo.data['uid'];
                    $('.user_uid').html('UID:' + uidflag);

                    var money = 0;
                    if (currencyinfo) {
                        if (currencyinfo.code == 0) money = currencyinfo.data;
                    }
                    $('.current_money').html(money);

                    if (userinfo.data['vipuserid'] > 0) {
                        $('.liangcode22').show();
                        if (userinfo.data['viplevel'] == 1) {
                            $('.liangcode22 img').attr("src", "//res.tuwan.com/templet/play/index/images/hao.png")
                        } else {
                            $('.liangcode22 img').attr("src", "//res.tuwan.com/templet/play/public/images/good.png")
                        }
                    } else {
                        $('.liangcode22').hide();
                    }

                    if (obj.flag == 1) {
                        $('.means_box').attr('href', '//y.tuwan.com/home/advisor/');

                        $('.common_payfor').html('提现');
                        $('.common_payfor').attr('href', '//y.tuwan.com/home/withdraw/');
                        $('.ocenter_order').attr('href', '//y.tuwan.com/home/advisor/');
                    } else {
                        $('.means_box').attr('href', '//y.tuwan.com/home/data/');

                        $('.common_payfor').html('充值');
                        $('.common_payfor').attr('href', '//y.tuwan.com/recharge/');
                        $('.ocenter_order').attr('href', '//y.tuwan.com/home/ocenter/');
                    }

                    $('.current_value_info').html('钻石');
                    $('.current_value').html(obj.diamond);
                    $('#loginfalse').hide();
                    $('#logintrue').show();
                } else {
                    $('#apply').attr("flag", "0");
                    $('#loginfalse').show();
                    $('#logintrue').hide();
                }
            }
        })
        $('#apply').click(function() {
            if ($(this).attr("flag") == 0) {
                $('#index_pup_box').show();
            }
        })
        $(document).on('click', '#dologout', function() {
            $.ajax({
                url: "//app.tuwan.com/comment2/api/useraction.ashx?method=loginout",
                dataType: "jsonp",
                success: function(obj) {
                    location.reload(true);
                }
            })
        })
        // 回车键事件
        $(document).keypress(function(e) {
            if (e.which == 13) {
                if ($('#index_pup_box').css('display') == 'block') {
                    check_login();
                } else {
                    var isFocus = $(".search_input").is(":focus");
                    if (isFocus) {
                        search();
                    }
                }

            }
        })
        $('#index_pup_box input').focus(function() {
            $(this).next().html("");
        })
        //注册
        //校验手机
        function CheckPhone() {
            var val = $('#ctl00_mainContent_txt_phone').val();
            var reg_phone = /^1\d{10}$/;
            if (!reg_phone.test(val)) {
                $("#phone_tishi").text("手机号必须为11位数字");
                $("#checkall_phone").val(0);
                return;
            }
            var sendData = new Object();
            sendData.username = val;
            sendData.platform = 'mobile';
            var content = packSendData_general(sendData);
            $.ajax({
                type: "post",
                url: "//user.tuwan.com/api/method/chkuser",
                dataType: 'jsonp',
                data: {
                    data: content
                },
                success: function(data) {
                    if (data.code != 0) {
                        publicKey = (data.data);
                        $("#phone_tishi").text(data.msg);
                        $("#checkall_phone").val(0);
                        return;
                    } else {
                        $("#checkall_phone").val(1);
                        $("#phone_tishi").html('<img src="picture/ture.png"/>');
                    }
                }
            });
        }
        $('#ctl00_mainContent_txt_phone').blur(function() {
            CheckPhone();
        })
        //校验用户名
        function CheckUserName() {
            var val = $("#user_name").val();
            var pattern = new RegExp("[%--`~!\#@$^&*()\\s\=|{}':;',\\[\\].<>/?~！@￥……&*（）——|{}【】‘；：”“'。，、？\"]");
            var pattern_2 = new RegExp("[0-9]+");
            if (val.length > 15 || val.length < 3) {
                $("#username_tishi").html("用户名格式不符合要求");
                $("#checkall_name").val(0);
                return;
            }
            if (val.match(pattern) != null) {
                $("#username_tishi").html("用户名包含敏感字符");
                $("#checkall_name").val(0);
                return;
            } else {
                if (val.match(pattern_2) == val) {
                    $("#username_tishi").html("用户名不能为纯数字");
                    $("#checkall_name").val(0);
                    return;
                } else {
                    var sendData = new Object();
                    sendData.username = val;
                    sendData.platform = 'pc';
                    var content = packSendData_general(sendData);
                    $.ajax({
                        type: "post",
                        url: "//user.tuwan.com/api/method/chkuser",
                        dataType: 'jsonp',
                        data: {
                            data: content
                        },
                        success: function(data) {
                            if (data.code != 0) {
                                publicKey = (data.data);
                                $("#username_tishi").text(data.msg);
                                $("#checkall_name").val(0);
                                return;
                            } else {
                                $("#checkall_name").val(1);
                                $("#username_tishi").html('<img src="picture/ture.png"/>');
                            }
                        }
                    });
                }
            }
        }
        $('#user_name').blur(function() {
            $('.dislocation_box').eq(0).css('display', 'none');
            CheckUserName();
        })
        //校验密码
        function CheckUserPass() {
            if ($("#userpwd").val() == '') {
                $("#userpwd_tishi").html("密码不能为空");
                $("#checkall_pwd").val(0);
                return;
            } else if ($("#userpwd").val().length > 20 || $("#userpwd").val().length < 6) {
                $("#userpwd_tishi").html("密码不符合要求");
                $("#checkall_pwd").val(0);
                return;
            } else if ($("#userpwd").val() == $("#user_name").val()) {
                $("#userpwd_tishi").html("密码不能和用户名相同");
                $("#checkall_pwd").val(0);
                return;
            } else if ($("#userpwd").val() == $("#ctl00_mainContent_txt_phone").val()) {
                $("#userpwd_tishi").html("密码不能和手机号相同");
                $("#checkall_pwd").val(0);
                return;
            } else {
                $("#checkall_pwd").val(1);
                $("#userpwd_tishi").html('<img src="picture/ture.png"/>');
            }
        }
        $('#userpwd').blur(function() {
            $('.dislocation_box').eq(1).css('display', 'none');
            CheckUserPass();
        })


        var countdown = 60;

        function settime(obj) {
            if (countdown <= 0) {
                obj.removeAttr("disabled");
                obj.html("获取验证码");
                countdown = 60;
                return;
            } else {
                obj.attr("disabled", "disabled");
                obj.html("重新发送(" + countdown + ")");
                countdown--;
            }
            setTimeout(function() {
                settime(obj)
            }, 1000)
        }
        //验证码校验
        var bindFlag = false;
        var handler = function(captchaObj) {
            // 将验证码加到id为captcha的元素里
            $("#getcode").click(function() {
                CheckPhone();
                CheckUserName();
                CheckUserPass();
                var phone = $("#ctl00_mainContent_txt_phone").val(); //获取手机号
                var username = $("#user_name").val(); //获取用户名
                var userpwd = $("#userpwd").val(); //获取密码
                if ($("#checkall_phone").val() == 1 && $("#checkall_name").val() == 1 && $("#checkall_pwd").val() == 1) {
                    if (!bindFlag) {
                        $(".gt_holder").addClass('gt_show');
                        captchaObj.bindOn("#getcode");
                        $('.gt_show').css('z-index', '9999999');
                        bindFlag = true;
                    }


                    var validate = captchaObj.getValidate();
                    if (!validate) { //判断回执
                        return;
                    }
                    var sendData = new Object();
                    sendData.t = phone;
                    sendData.c = validate.geetest_challenge;
                    sendData.v = validate.geetest_validate;
                    sendData.s = validate.geetest_seccode;
                    var content = packSendData_general(sendData);
                    $.ajax({
                        url: "//user.tuwan.com/api/requestCode.ashx?t\x3d" + (new Date).getTime(),
                        dataType: "jsonp",
                        jsonp: "callback",
                        data: {
                            data: content
                        },
                        success: function(data) {

                        }
                    });
                    settime($("#getcode"));
                }
            });
            captchaObj.appendTo("#captcha");
        };

        $.ajax({
            // 获取id，challenge，success（是否启用failback）
            url: "//user.tuwan.com/api/getSlider.ashx?t=" + (new Date()).getTime(),
            type: "get",
            dataType: "jsonp", // 使用jsonp格式
            success: function(data) {
                // 使用initGeetest接口
                // 参数1：配置参数，与创建Geetest实例时接受的参数一致
                // 参数2：回调，回调的第一个参数验证码对象，之后可以使用它做appendTo之类的事件
                initGeetest({
                    gt: data.gt,
                    challenge: data.challenge,
                    product: "popup", // 产品形式
                    offline: !data.success
                }, handler);
            }
        });
        $("#phonecode").focus(function() {
            $(".dislocation_0aa").html("");
        })
        //注册按钮
        $("#button_post1").click(function() {
            var phone = $("#ctl00_mainContent_txt_phone").val(); //获取手机号
            var username = $("#user_name").val(); //获取用户名
            var userpwd = $("#userpwd").val(); //获取密码
            var phonecode = $("#phonecode").val(); //获取手机验证码
            if ($("#checkall_phone").val() == 1 && $("#checkall_name").val() == 1 && $("#checkall_pwd").val() == 1) {



                //console.info(publicKey);

                var sendData = new Object();
                sendData.n = username;
                sendData.p = userpwd;
                sendData.t = phone;
                sendData.c = phonecode;
                var content = packSendData_general(sendData);
                console.info(content);
                sreg(username, userpwd, phone, phonecode, callback);
                function callback(data) {
                    console.info(data);
                    if (data.code == "0") {

                        window.location.href = strhref;
                    } else {
                        $(".dislocation_0aa").html("验证码错误");
                    }
                }
            }
        });
        $("#user_name").focus(function() {
            $('.dislocation_box').eq(0).css('display', 'block');
        })
        $("#userpwd").focus(function() {
            $('.dislocation_box').eq(1).css('display', 'block');
        })

        $('#loginfalse').click(function() {
            $('#index_pup_box').show();
            loadcode('code', 82, 30);
        })
        $('.search_img_box .search_img').click(function() {
            search();
        })

        var n = 0;
        $(".enroll").click(function() {
            $(this).addClass("enroll_add").siblings().removeClass("enroll_add");
            n = $(".enroll").index(this);
            $(".enroll_content").eq(n).show().siblings().hide();
        })
        $(".close").click(function() {
            $('#index_pup_box').hide()
        })
        $('.QQ').attr('href', '//user.tuwan.com/api/url.ashx?app=qq&redirect_uri=' + encodeURIComponent(strhref));
        $('.Wechat').attr('href', '//user.tuwan.com/api/url.ashx?app=weixin&redirect_uri=' + encodeURIComponent(strhref));
    });
    $(".close_year").on("click", function() {
        $(".year1130_box").hide();
    })


    var leng = $('.common_top_nav').length;
    for (i = 0; i < leng; i++) {
        var href = $('.common_top_nav').eq(i).attr('href');
        if (href.indexOf(location.pathname) != -1 && location.pathname != '/') {
            $(".common_top_nav").eq(i).addClass("common_top_nav_add");
        }
    }
    if (location.pathname == '/') $(".common_top_nav").eq(0).addClass("common_top_nav_add");
    $(".audio_close").on("click", function() {
        $(".audio_right").hide();
    })
</script>
<div class="videoFloat" style="display: none;">
    <div class="video-close"></div>
    <video autoplay id="videourl" controls src=""></video>
</div>
<script>
    function playmp4(obj){
        $('#videourl').attr('src',obj);
        $('.videoFloat').show();
        $('video').trigger('play');
    }

    $('.video-close').on('click',function(){
        $('.videoFloat').hide();
        $('video').trigger('pause');
    })

</script>
<!-- 弹窗-bg -->
<div class="pop_up_box"  style="display: none;">
    <div class="pop_up_bg"></div>
    <div class="pop_up_content">
        <div class="close_btn fr"><img src="picture/close.png"></div>
        <!-- 礼物购买弹窗 -->
        <div class="pop_for_box" style="display: none;">
            <div class="pop_up_gift"><img src="picture/gift_04.png"></div>
            <div class="play_coins"><img src="picture/play_coins.png"><span>66钻石</span></div>
            <div class="play_coins_name"><span>送</span>“火锅 ”<span>给</span>  嘴硬</div>
            <div class="play_coins_text">- 将获得7天冠名权 -</div>
            <div class="mt20">
                <div class="fl add_title">赠送数量：</div>
                <div class="fl add_left_box">
                    <div class="fl add_left add_left2">-</div>
                    <div class="fl add_text add_text2">1</div>
                    <div class="fl add_right add_right2">+</div>
                    <div class="clearfix"></div>
                </div>
                <div class="fl ml15 click_box"><img src="picture/click.png" class="click"><img src="picture/click_hover.png"  class="click_hover" style="display: none;">&nbsp;&nbsp;匿名</div>
                <div class="clearfix"></div>
            </div>
            <div class="give_btn">赠送</div>
            <div class="give_warn">*匿名赠送，收礼人将无法得知您的身份</div>
        </div>
        <!-- 礼物购买弹窗-end -->
        <!-- 余额不足-->
        <div class="no_money_box" style="display: none;">
            <div class="no_money pt40"><img src="picture/no_money.png"></div>
            <div class="no_money_wran mt20 mb30">余额不足，是否现在充值？</div>
            <div class="fl recharge_left_btn">稍后充值</div>
            <a href="https://y.tuwan.com/recharge/" target="_blank"><div class="fl recharge_right_btn">马上充值</div></a>
            <div class="clearfix"></div>
        </div>
        <!-- 余额不足-end-->
        <!-- 支付选择页 -->
        <div class="pay_select_box" style="display: none;">
            <div class="no_money pt40"><img src="picture/no_money.png"></div>
            <div class="no_money_wran mt20 mb30">请选择支付方式</div>
            <div class="fl recharge_new_left_btn">余额支付</div>
            <div class="fl recharge_new_right_btn">钻石支付</div>
            <div class="clearfix"></div>
        </div>
        <!-- 支付选择页-end-->
        <!-- 支付问题 -->
        <div class="payment_box payment_box1" style="display: none;">
            <div class="payment_title">随机金额</div>
            <div class="payment_title_input_box">
                <span class="fl mr10">¥ </span>
                <input class="payment_title_input fl" value="6~200">
                <div class="clearfix"></div>
            </div>
            <div class="fl payfor_01 ml50" value="0"><img src="picture/payfor_01_select.png"><br>微信</div>
            <div class="fl payfor_01 payfor_box" value="1"><img src="picture/payfor_02.png"><br>支付宝</div>
            <div class="fl payfor_01" value="2"><img src="picture/payfor_03.png"><br>余额</div>
            <div class="clearfix"></div>
            <div class="payfor_wechat">使用微信支付</div>
            <a class="sure_btn_a"><div class="sure_btn">发红包</div></a>
        </div>
        <!-- 支付问题-end -->
        <!-- 支付微信号 -->
        <div class="payment_box payment_box2" style="display: none;">
            <div class="money_pirce">¥ 66</div>
            <div class="fl payfor_01 ml50" value="0"><img src="picture/payfor_01_select.png"><br>微信</div>
            <div class="fl payfor_01 payfor_box" value="1"><img src="picture/payfor_02.png"><br>支付宝</div>
            <div class="fl payfor_01" value="2"><img src="picture/payfor_03.png"><br>余额</div>
            <div class="clearfix"></div>
            <div class="payfor_wechat">使用微信支付</div>
            <a class="sure_btn_a"><div class="sure_btn">发红包</div></a>
            <div class="sure_btn_warn">支付红包后，ta的微信号将会发送给您的账户</div>
            <div style="font-size: 14px; color: #999; text-align: center;">支付66元可获得导师微信号</div>
        </div>
        <!-- 支付微信号-end -->
        <!-- 表白弹窗 -->
        <div class="express_popup_box express_popup_box1" style="display: none;">
            <div class="express_top_title">对<span>“嘴硬”</span>进行表白</div>
            <div class="express_content">
                <span class="content_icon fl"><img src="picture/express_content.png"><span>表白内容</span></span>
                <textarea class="content_text fl" placeholder="不超过40个字..." onkeyup="keypress2()"></textarea>
                <div class="content_text_wran">0/40</div>
                <div class="clearfix"></div>
            </div>
            <div class="express_content">
                <span class="content_icon fl"><img src="picture/express_time.png"><span> 表白时间</span></span>
                <div class="fl">


                    <div class="ta_date" id="div_date3"><!--div_date1   改为div_date3-->


                        <input class="form_datetime2 date_title" type="text" value="" readonly placeholder="" style="width: 120px;background:#eaeaea;" />
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="fl no_express">放弃表白</div>
            <div class="fl sure_express">确认表白</div>
            <div class="clearfix"></div>
            <div class="express_warn">*确认表白后将无法修改，表白成功后系统会发送您一条消息提醒。<br>
                *放弃表白则示为放弃礼物的表白特权，再次表白需重新赠送礼物。</div>
        </div>
        <!-- 表白弹窗-end -->
        <!-- 冠名弹窗 -->
        <div class="express_popup_box express_popup_box2" style="display: none;">
            <div class="express_top_title">对<span>“嘴硬”</span>进行冠名</div>
            <div class="express_content">
                <span class="content_icon fl"><img src="picture/express_content.png"><span>冠名内容</span></span>
                <input class="fl content_input" placeholder="不超过4个字">
                <div class="fl content_input_eg">*例：(冠名内容)♚小可爱</div>
                <div class="clearfix"></div>
            </div>
            <div class="express_content pt20">
                <span class="content_icon fl"><img src="picture/express_time.png"><span> 冠名时间</span></span>
                <div class="fl">


                    <div class="ta_date" id="div_date">    <!--div_date1 修改为div_date-->


                        <input class="form_datetime3 date_title" type="text" value="" readonly placeholder="" style="width: 120px;background:#eaeaea;" />
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="fl no_express">放弃冠名</div>
            <div class="fl sure_express">确认冠名</div>
            <div class="clearfix"></div>
            <div class="express_warn">*如导师已被冠名，冠名时间则要设置为现有冠名结束后。<br>
                *放弃冠名则示为放弃礼物的冠名特权，再次冠名需重新赠送礼物。</div>
        </div>
        <!-- 冠名弹窗-end -->
    </div>
</div>
<!-- 弹窗-bg-end -->
<!-- 大弹窗 -->
<div class="pop_up_bigbox" style="display:none">
    <div class="pop_up_bg"></div>
    <div class="pop_up_bigcontent">
        <div class="close_btn fr"><img src="picture/close.png"></div>
        <!-- 支付方法 -->
        <div class="order_payfor"   style="display: none;">
            <div class="order_information_title"></div>
            <div class="order_name_box">
                <div class="fl order_name">导师：</div>
                <div class="fl order_test_head"><img src="picture/90_avatar_middle.jpg"></div>
                <div class="fl order_name">嘴硬</div>
                <div class="fr order_time">支付剩余时间：<span id="minute_show">09分</span><span id="second_show">59秒</span></div>
                <div class="clearfix"></div>
            </div>
            <div class="order_information_title mt20"><img src="picture/order_cost.png">费用：</div>
            <div class="alipay_time">48元 * 1小时</div>

            <div style="text-align: center; margin-top: 10px;">
                <p>
                    <img id="imgPayEWM" width="240" height="240" src="">
                </p>
                <p style="font-size: 16px;">请用微信或支付宝扫描支付</p>

            </div>





        </div>
        <!-- 支付方法-end -->
        <!-- 支付失败 -->
        <div class="pay_fail pb30" style="display: none;">
            <div class="pay_warn"><img src="picture/pay_warn.png"><span class="paytitle">支付提示</span></div>
            <div class="pay_fail_cion"><img src="picture/pay_fail.png"></div>
            <div class="pay_for paycontent">请您在新打开的第三方页面完成支付</div>
            <div class="pay_for_box paysuccess">
                <div class="fl pay_for_fail">支付失败</div>
                <div class="fl pay_for_success">支付完成</div>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
        <!-- 支付失败-end -->
        <!-- 下单约她 -->
        <div class="about_box about_box1" style="display: none">
            <div class="order_information_title"><img src="picture/order_information.png">下单信息：</div>
            <div class="order_name_bigbox">
                <div class="order_name_box fl">
                    <div class="fl order_name">导师：</div>
                    <div class="fl order_test_head"><img src="picture/90_avatar_middle.jpg"></div>
                    <div class="fl order_name">嘴硬</div>
                    <div class="clearfix"></div>
                </div>
                <div class="order_name_box fl ml50">
                    <div class="fl order_name">服务：</div>
                    <div class="fl order_test_lol"><img src=""></div>
                    <div class="fl order_name service_name">线上LOL</div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="order_information_title mt15"><img src="picture/order_time.png">下单时间：</div>
            <div class="express_content ">
                <span class="content_icon fl">日期:</span>
                <div class="fl">
                    <div class="ta_date" id="div_date1">
                        <input class="form_datetime date_title" type="text" value="" readonly placeholder="" style="width: 150px;background:#eaeaea;" />
                    </div>
                </div>
                <div class="fl ml5">
                    <div class="content_time_box">
                        <div class="content_icon fl">时间</div>
                        <div class="content_input fl content_input_time" id="shijian" style="line-height:30px;"></div>
                        <input  class="input-cell" type="hidden" value="" id="shijian1">
                        <input  class="input-cell" type="hidden" value="" id="shijian2">
                        <div class="table_time" style="display: none;">
                            <table border="1" cellpadding="0" cellspacing="0" rules="all">
                                <tbody>
                                <tr>
                                    <td>00:00</td>
                                    <td>00:30</td>
                                    <td class="">01:00</td>
                                    <td class="">01:30</td>
                                    <td>02:00</td>
                                    <td>02:30</td>
                                    <td>03:00</td>
                                    <td>03:30</td>

                                </tr>
                                <tr>
                                    <td>04:00</td>
                                    <td>04:30</td>
                                    <td>05:00</td>
                                    <td>05:30</td>
                                    <td class="td_add">06:00</td>
                                    <td>06:30</td>
                                    <td>07:00</td>
                                    <td>07:30</td>

                                </tr>
                                <tr>
                                    <td>08:00</td>
                                    <td>08:30</td>
                                    <td>09:00</td>
                                    <td>09:30</td>
                                    <td>10:00</td>
                                    <td>10:30</td>
                                    <td>11:00</td>
                                    <td>11:30</td>

                                </tr>
                                <tr>
                                    <td>12:00</td>
                                    <td>12:30</td>
                                    <td class="">13:00</td>
                                    <td>13:30</td>
                                    <td>14:00</td>
                                    <td>14:30</td>
                                    <td>15:00</td>
                                    <td>15:30</td>

                                </tr>
                                <tr>
                                    <td>16:00</td>
                                    <td>16:30</td>
                                    <td>17:00</td>
                                    <td class="">17:30</td>
                                    <td class="">18:00</td>
                                    <td>18:30</td>
                                    <td class="">19:00</td>
                                    <td>19:30</td>

                                </tr>
                                <tr>
                                    <td>20:00</td>
                                    <td>20:30</td>
                                    <td>21:00</td>
                                    <td>21:30</td>
                                    <td>22:00</td>
                                    <td>22:30</td>
                                    <td>23:00</td>
                                    <td class="">23:30</td>
                                </tr>
                                </tbody></table>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="fl ml5">
                    <div class="content_icon fl">小时：</div>
                    <div class="fl add_left_box">
                        <div class="fl add_left bootstrap-touchspin-down">-</div>
                        <div class="fl add_text" id="hour_">1</div>
                        <div class="fl add_right bootstrap-touchspin-up">+</div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="mt30 pb10">
                <span class="fl qq_03_content"><img src="picture/qq_03.png">&nbsp;联系方式:</span>
                <input type="text" value=""  placeholder="请务必填写您的qq,方便导师与您联系" class="fl qq_03_input border-qq border-qq1" />
                <div class="clearfix"></div>
            </div>
            <div class="order_information_title mt15"><img src="picture/order_btn.png">导师留言：</div>
            <textarea placeholder="给导师说点什么吧..." class="order_textarea"></textarea>
            <div class="order_information_title mt15 fl" id="currmoney"></div>
            <div class="fr order_grade_box">
                <div class="mt15 order_grade">尊敬的  <img src="picture/grade_4.png">   vip用户，您将享有<span>9.20</span>折优惠</div>
                <div class="order_cost"><img src="picture/order_cost.png"><span>总价</span>：40元（单价：40*1小时）</div>
                <div class="order_cost">折扣：0元</div>
                <div class="order_count">实付：<span>40元</span></div>
            </div>
            <div class="clearfix"></div>
            <div class="fl sure_leftbtn_count">现金支付</div>
            <div class="fl sure_rightbtn_count">余额支付</div>
            <div class="fl orderTips" style=" color: #aa5826;font-size: 12px;text-align: center;margin-top: 10px;margin-left:50px;">
                请勿用第三方平台进行交易，谨防被骗，一经查出将严惩，点点约玩将保留追求其他相关法律责任权利。<br>
                欢迎大家举报私单行为，一经核实将有丰厚奖励。
            </div>
            <div class="clearfix"></div>
            <div class="sure_rightbtn_bottom_warn" style="display: none">1天内未支付订单超过5个，当日将无法继续下单</div>
        </div>
        <!-- 下单约她-end -->
        <!-- 下单约她 -->
        <div class="about_box about_box2" style="display: none">
            <div class="order_information_title"><img src="picture/order_information.png">下单信息：</div>
            <div class="order_name_bigbox">
                <div class="order_name_box fl">
                    <div class="fl order_name">导师：</div>
                    <div class="fl order_test_head"><img src="picture/90_avatar_middle.jpg"></div>
                    <div class="fl order_name">嘴硬</div>
                    <div class="clearfix"></div>
                </div>
                <div class="order_name_box fl ml50">
                    <div class="fl order_name">服务：</div>
                    <div class="fl order_test_lol"><img src=""></div>
                    <div class="fl order_name service_name"></div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="order_name_bigbox">
                <div class="order_information_title mt15"></div>
                <div class="order_information_warn_box">*每个用户仅享受一次9.9元体验单的机会，导师会一同和您畅玩一局游戏。</div>
            </div>
            <div class="mt30 pb10">
                <span class="fl qq_03_content"><img src="picture/qq_03.png">&nbsp;联系方式:</span>
                <input type="text" value=""  placeholder="请务必填写您的qq,方便导师与您联系" class="fl qq_03_input border-qq border-qq2" />
                <div class="clearfix"></div>
            </div>
            <div class="order_information_title mt15 fl" id="currmoney2"></div>
            <div class="fr order_grade_box">
                <div class="mt15 order_grade"></div>
                <!-- 放9.9优惠券处 xxxxxxxxxxxxx-->
                <div class="youhuijuan99"></div>
                <!-- -->
                <div class="order_cost"><img src="picture/order_cost.png"><span>总价</span>：9.9元（单价：9.9*1<em id="order_unit">小时</em>）</div>
                <div class="order_cost">折扣：0元</div>
                <div class="order_count">实付：<span id="real99">9.9元</span></div>
            </div>
            <div class="clearfix"></div>
            <div class="fl sure_leftbtn_count">现金支付</div>
            <div class="fl sure_rightbtn_count">余额支付</div>
            <div class="clearfix"></div>
            <div class="sure_rightbtn_bottom_warn">1天内未支付订单超过5个，当日将无法继续下单</div>
        </div>
        <!-- 下单约她-end -->
    </div>
</div>
<!-- 大弹窗-end -->
<!-- body-bg -->
<div class="body_bg" >
    <!-- top -->
    <div class="index_banner_bg" >
        <div class="top_bg">
            <div class="top_left fl">
                <div class="top_head_img fl"><img src="/picture/90_avatar_middle.jpg"></div>
                <div class="fl mt25 ml10">
                    <div class="top_immortal_text">李向前<br><img src="/picture/plutocrat_rick.png" class="plutocrat_rick" style="display: none;"></div>
                    <div class="top_usercp_text fl">信用值：0.0</div>
                    <div class="fl top_usercp_jibie">
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="top_center fl">
                <div class="top_center_bigbox">
                    <div class="top_center_box" id="scrollBlock">
                    </div>
                </div>
            </div>
            <!--快速分享-->
            <div class="top_right fl">
                <div class="">
                    <div class="fl">
                        <div class="share_top_box1_box">
                            <div class="top_share ml15 mr15"><img src="/picture/share.png">&nbsp;&nbsp;分享</div>
                            <div class="share_top_box1">
                                <div class="share_top"><img src="/picture/share_top.png"></div>
                                <div class="code_title">快速分享</div>
                                <div class="fl ml15 mt40 qq_1 qq_class"><img src="/picture/qq_1.png" title="分享到QQ"></div>
                                <div class="fl ml15 mt40 qq_1 qzone_class"><img src="/picture/qq_01.png" title="分享到QQ空间"></div>
                                <div class="fl ml15 mt40 qq_1 weibo_class"><img src="/picture/qq_02.png" title="分享到新浪微博"></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                    <div class="fl top_follow"><img src="/picture/follow.png">&nbsp;&nbsp;关注</div>
                    <div class="fl top_follow_no" style="display: none;"><img src="/picture/top_follow_no.png">&nbsp;&nbsp;取关</div>
                    <div class="fl top_follow_ed" style="display: none;"><img src="/picture/top_follow_ed.png">&nbsp;&nbsp;已关注</div>
                    <div class="clearfix"></div>
                </div>
                <!--基本信息-->
                <div class="top_women fr">
                    <div class="fl"><img src="/picture/women.png">&nbsp;&nbsp;20</div>
                    <div class="fl ml15 mr15"><img src="/picture/address.png">&nbsp;&nbsp;长春市</div>
                    <div class="fl"><img src="/picture/time.png">&nbsp;&nbsp;离线</div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>

        <!-- 内容 -->
        <div class="pt30 content_center" style="max-width: 1240px;">
            <div class="content_center_left fl">
                <!-- 左侧top -->
                <div class="content_center_left_subbox">
                    <div style="position: relative;">
                        <img src="picture/plutocrat_rick.png" class="plutocrat_rick_01" style="display: none;">
                        <div class="content_left_top_big_img">
                            <a class="fancybox" href="https://ucavatar.tuwan.com/data/avatar/001/35/59/90_avatar_large.jpg?random=20181229" target="_blank" data-fancybox-group="gallery" title="嘴硬"><img src="picture/90_avatar_large.jpg" alt="" /></a>
                            <div class="content_left_magnifier_box" style="display: none;">
                                <div class="content_left_magnifier_text fl ml30"></div>
                                <div class="content_left_magnifier_img fr mr30"><img src="/picture/magnifier.png"></div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                    <div class="mt15 ml15">
                        <div class="fl mt25 left_btn"><img src="picture/left_btn.png"></div>
                        <div class="fl">
                            <div class="content_left_top_sub_img_bigbox">
                                <div class="content_left_top_sub_img_box">
                                    <div class="fl content_left_top_sub_img content_left_top_sub_img_add">
                                        <div class="content_left_test_head_box">
                                            <img src="picture/90_avatar_big.jpg">
                                        </div>
                                    </div>
                                    <div class="clearfix"></div>
                                </div>
                            </div>
                        </div>
                        <div class="fl mt25 right_btn"><img src="picture/right_btn.png"></div>
                        <div class="clearfix"></div>
                    </div>
                    <!-- 左侧top-end-->

                    <div class="content_left_gift_blackbg_all">
                        <div class="content_left_giftlist_nav_bg" style="position: static; background: #ccc;">
                            <div class="fl content_left_giftlist_nav content_left_giftlist_nav_add">礼物</div>
                            <div class="border_gift_center fl" style="background: #aaa;"></div>
                            <div class="fl content_left_giftlist_nav">冠名</div>
                            <div class="fl content_left_giftlist_nav">活动礼</div>
                            <div class="fl content_left_giftlist_nav" style="position: relative;">包裹<b id="bredpoint2" style="position: absolute; width: 8px;height: 8px; background: #ff0000; top:0px;right: 2px; border-radius: 8px;display: none;"></b></div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="content_left_gift_blackbg" style="position: static; background: #fff;height: 339px;">
                            <div class="content_left_padding_bg">
                                <div class="content_left_padding">
                                    <div class="content_left_giftlist">
                                        <div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 content_left_gift_02_add" gid="1">
                                            <div class="gift_pirce_box">
                                                <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                                <div class="gift_pirce_text " >
                                                    价格：1钻石
                                                    <div>导师获赠1魅力值</div>
                                                    <div class="gift_btntop_end"></div>
                                                </div>
                                            </div>
                                            <div class="gift_01_img_height"><img src="picture/1629711503976254.png"></div>
                                            香吻
                                        </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="96">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：10钻石
                                                <div>导师获赠10魅力值</div>
                                                <div class="gift_btntop_end">元旦节日礼物</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1142101545745926.png"></div>
                                        烟火
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="77">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：10钻石
                                                <div>导师获赠10魅力值</div>
                                                <div class="gift_btntop_end">圣诞节专属礼物</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1869951544500364.png"></div>
                                        平安果
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="34">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：10钻石
                                                <div>导师获赠10魅力值</div>
                                                <div class="gift_btntop_end"></div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1898151532696070.png"></div>
                                        玫瑰
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="57">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：52钻石
                                                <div>导师获赠52魅力值</div>
                                                <div class="gift_btntop_end"></div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/2049781539250469.png"></div>
                                        棒棒糖
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="68">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：99钻石
                                                <div>导师获赠99魅力值</div>
                                                <div class="gift_btntop_end">感恩节礼物</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1292451542357555.png"></div>
                                        感恩的心
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="66">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：198钻石
                                                <div>导师获赠198魅力值</div>
                                                <div class="gift_btntop_end">点歌专用</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1456841541580138.png"></div>
                                        金话筒
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="98">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：666钻石
                                                <div>导师获赠666魅力值</div>
                                                <div class="gift_btntop_end">元旦节日礼物
                                                    收到1个获得实力脱单
                                                    收到10个获得家里有矿
                                                    收到52个获得人生赢家</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1278231545732119.png"></div>
                                        许愿灯
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="99">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：2019钻石
                                                <div>导师获赠4038魅力值</div>
                                                <div class="gift_btntop_end">元旦专属礼物 魅力值+贡献值翻倍</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1300931545732107.png"></div>
                                        元旦礼花
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="5">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：1990钻石
                                                <div>导师获赠1990魅力值</div>
                                                <div class="gift_btntop_end">获得表白位（1天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/2090801542354414.gif"></div>
                                        表白
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="6">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：5200钻石
                                                <div>导师获赠5200魅力值</div>
                                                <div class="gift_btntop_end">获得表白位（7天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1417281503976535.png"></div>
                                        钻戒
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="8">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" style="width:180px;">
                                                价格：36660钻石
                                                <div>导师获赠36660魅力值</div>
                                                <div class="gift_btntop_end">导师获赠专属主页皮肤（30天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1775311542354534.png"></div>
                                        别墅
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="55">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：131400钻石
                                                <div>导师获赠131400魅力值</div>
                                                <div class="gift_btntop_end">获得冠名（365天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1130651539409858.gif"></div>
                                        年冠名
                                    </div>
                                        <div class="clearfix"></div>
                                    </div>
                                    <div class="content_left_giftlist" style="display: none;">
                                        <div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="37">
                                            <div class="gift_pirce_box">
                                                <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                                <div class="gift_pirce_text " >
                                                    价格：999钻石

                                                    <div class="gift_btntop_end">获得冠名（1天）</div>
                                                </div>
                                            </div>
                                            <div class="gift_01_img_height"><img src="picture/6072051531895135.png"></div>
                                            日冠
                                        </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="9">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：5200钻石

                                                <div class="gift_btntop_end">获得冠名（7天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1540621505120933.png"></div>
                                        周冠名
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="10">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：13140钻石

                                                <div class="gift_btntop_end">获得冠名（30天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1104631505120967.png"></div>
                                        月冠名
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="55">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：131400钻石
                                                <div>导师获赠131400魅力值</div>
                                                <div class="gift_btntop_end">获得冠名（365天）</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/1130651539409858.gif"></div>
                                        年冠名
                                    </div>
                                    </div>
                                    <div class="content_left_giftlist" style="display: none;">
                                        <div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="78">
                                            <div class="gift_pirce_box">
                                                <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                                <div class="gift_pirce_text gift_pirce_text_02" >
                                                    价格：666钻石
                                                    <div>导师获赠666魅力值</div>
                                                    <div class="gift_btntop_end">活动期间：
                                                        收到1个获得圣诞精灵
                                                        收到10个获得圣诞天使
                                                        收到52个获得圣诞老人</div>
                                                </div>
                                            </div>
                                            <div class="gift_01_img_height"><img src="picture/2133071544603843.png"></div>
                                            圣诞树
                                        </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="79">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：1225钻石
                                                <div>导师获赠2450魅力值</div>
                                                <div class="gift_btntop_end">圣诞专属礼物
                                                    魅力值+贡献值翻倍</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/8823631544521477.png"></div>
                                        圣诞快乐
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="14">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text gift_pirce_text_02" >
                                                价格：2880钻石
                                                <div>导师获赠2880魅力值</div>
                                                <div class="gift_btntop_end">获得富豪推荐1天</div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/5123141508487078.png"></div>
                                        富豪推荐
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="17">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：10钻石
                                                <div>导师获赠10魅力值</div>
                                                <div class="gift_btntop_end"></div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/2132001515566355.png"></div>
                                        胡萝卜
                                    </div><div style="color: #333;" class="content_left_gift_02 fl content_left_gift_type1 " gid="25">
                                        <div class="gift_pirce_box">
                                            <div class="gift_pirce"><img src="picture/gift_pirce.png"></div>
                                            <div class="gift_pirce_text " >
                                                价格：2钻石
                                                <div>导师获赠2魅力值</div>
                                                <div class="gift_btntop_end"></div>
                                            </div>
                                        </div>
                                        <div class="gift_01_img_height"><img src="picture/3653191516859916.png"></div>
                                        六味帝王丸
                                    </div>
                                    </div>

                                    <div class="content_left_giftlist content_left_giftlist04" style="display: none;">

                                    </div>
                                    <div class="yuewanbi" style="margin-top: 104px; color: #333">剩余钻石：0</div>

                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                    <div class="content_left_gift_bg" style="background: #ccc; color: #333;">
                        <!-- 隐藏礼物-->
                        <div class="fl content_left_present_box" style="border-right: solid 1px #aaa; cursor: default;">
                            <div class="content_left_gift_bg_box">
                                <div class="gift_test_box">
								<span class="ml10 gift_test" style="position: relative;">
									<img src="picture/gift_test.png">&nbsp;&nbsp;<em class="giftTitle" style="color: #ff593e">香吻</em>
								</span>

                                </div>
                            </div>
                        </div>

                        <!-- 隐藏礼物-end-->
                        <div class="fl">
                            <div class="number_box">
                                <div class="top_kong ml10" style="background: #fff; border:solid 1px #aaa;">
                                    <span class="fl ml10" style="color: #333;">数量</span>
                                    <input style="color: #333; background: #fff; border-style: none;" type="text" class="fl" placeholder="1" value="1" id="giftNum">
                                    <div class="fl mr10 top_kong_hover_box">
                                        <img src="picture/top_kong_hover.png" class="top_kong_img">
                                        <img src="picture/top_kong_hover.png" class="top_kong_img_hover">
                                    </div>
                                    <div class="clearfix"></div>
                                    <div></div>
                                </div>
                                <div class="number_gift_bigbox">
                                    <ul class="number_gift_box">
                                        <li class="li_add">10</li>
                                        <li>66</li>
                                        <li>520</li>
                                        <li>888</li>
                                        <li>1314</li>
                                        <div class="clearfix"></div>
                                    </ul>
                                    <div class="shar_bottom"><img src="picture/shar_bottom.png"></div>
                                </div>
                            </div>
                        </div>
                        <div class="fl">
                            <div class="anonymous_box">
                                <div class="anonymous"><input type="checkbox" name="anonymous"><span>匿名赠送</span> 收礼人将无法得知您的身份</div>
                                <div class="top_box ml10">
                                    <div class="fl top_box_give" style="color: #fff;">赠送</div>
                                    <div class="fl top_box_give_img"><img src="picture/top.png"></div>
                                    <div class="clearfix"></div>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <!-- 左侧资料 -->
                <div class="content_left_bttom_box">
                    <div class="content_left_bttom_nav">
                        <!-- <div class="fl content_left_bttom_tab content_left_bttom_tab_add">ta的私密问答</div> -->
                        <div class="fl content_left_bttom_tab content_left_bttom_tab_add">   资料</div>
                        <div class="clearfix"></div>
                    </div>
                    <div>
                        <div class="content_left_bttom_content" style="display: none;">
                            <div class="question_bigbox">

                            </div>
                            <div class="textarea_box mt15">
                                <textarea name="message">说出你心中的问题...</textarea>
                            </div>
                            <div class="content_left_bttom_kickback">红包提问</div>
                            <div class="content_left_bttom_kickback_cue">超过48小时对方未回答，钱款将退回点点约玩账户余额中</div>
                            <div class="content_left_bttom_kickbac_copyright">*禁止侮辱、骚扰性质的恶意提问，对于恶意提问对方有权不回答</div>
                        </div>
                        <div class="content_left_bttom_content mt10">
                            <div class="data_01"><img src="picture/data_01.png"><span>身高</span>：175CM</div>
                            <div class="data_01"><img src="picture/data_02.png"><span>星座</span>：天蝎座</div>
                            <div class="data_01"><img src="picture/data_03.png"><span>职业</span>：其他</div>
                            <div class="data_01"><img src="picture/data_04.png"><span>魅力部位</span>：眼睛、腿、其他</div>
                            <div class="data_01"><img src="picture/data_05.png"><span>个性标签</span>：声音甜美、情感知心</div>
                            <div class="data_01"><img src="picture/data_06.png"><span>兴趣爱好</span>：LOL  </div>
                            <div class="wechat_box" style="display: none;"><img src="picture/wechat.png">查看></div>
                            <div class="wechat_box_ed"><img src="picture/wechat_hover.png">&nbsp;&nbsp;<span></span></div>
                        </div>
                    </div>
                </div>
                <!-- 左侧资料-end -->
            </div>
            <!-- 内容右侧 -->
            <div class="content_center_right fr">
                <!-- 右侧top礼物 -->
                <div class="gift_top_bigbox">
                    <!-- 守护者 -->
                    <div class="gift_top_box">
                        <div class="gift_top_img fl">
                            <img src="picture/gift_top.png"><br>守护者
                        </div>
                        <div class="gift_top_box_user">
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <!-- 守护者-end -->
                    <!-- 礼物 -->
                    <div class="gift_bottom_box">
                        <div class="gift_bottom_img fl"><img src="picture/gift_bottom.png"><br>礼物</div>
                        <div class="fl right_gift_btn mt40 ml5 move_left_btn"><img src="picture/left_btn.png"></div>
                        <div class="fl">
                            <div class="gift_bottom_img_height_box_gibbox">
                                <div class="gift_bottom_img_height_box_svbbox">
                                </div>
                            </div>
                        </div>
                        <div class="fl right_gift_btn mt40 ml5 move_right_btn"><img src="picture/right_btn.png"></div>
                        <div class="clearfix"></div>
                    </div>
                    <!-- 礼物-end -->
                </div>
                <!-- 右侧top礼物-end -->
                <!-- 右侧-评论 -->
                <div class="content_center_right_order mt20">
                    <!-- 评论nav -->
                    <div class="content_center_right_navbox">
                        <div class="fl content_center_right_nav "  dtid="31540" tinfoid="35077" >线上LOL</div><div class="fl content_center_right_nav content_center_right_nav_add"  dtid="20004" tinfoid="53430" >声优聊天</div><div class="fl content_center_right_nav "  dtid="20013" tinfoid="53435" >叫醒</div>
                        <div class="clearfix"></div>
                    </div>
                    <!-- 评论nav-end -->
                    <div>
                        <div  class="content_center_right_content" style="display:none;">

                            <div>
                                <div class="fl">
                                    <div class="fl">
                                        <div><img src="picture/lol.png"></div>
                                        <div class="play_btn_box mt15" onclick="playAudio(this)" data-music="https://img3.tuwandata.com/uploads/play/mp3/58880715432903101355990.mp3"><img src="picture/play_btn.png" class="play_btn"><span id="spanTime">17</span><img src="picture/play_audio.png"></div>
                                    </div>
                                    <div class="fl ml25">
                                        <div class="lol_name">线上LOL</div>
                                        <div class="lol_grading" style="float: left;">华贵铂金Ⅴ</div>

                                        <div class="lol_order" style="clear: both;">
                                            <img src="/picture/order_btn.png"><span>接单次数：160次</span></div>
                                    </div>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="fr money_pocket_box">
                                    <div class="money_pocket"><span style="margin-left:3px;">￥37</span>/小时</div>
                                    <div class="money_original"></div>

                                    <div class="fl money_pocket_bg money_pocket_bg_offline">离线</div>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="introduce_box">
                                <div class="introduce_title"><span>介绍</span>/ INTRODUCE</div>
                                <div class="introduce_text_box">
                                    <p style="text-align: center;"><br/></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);">主玩软辅</span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><br/></span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);">其可补AD 上单</span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><br/></span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);">千场风女钻石手法</span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><br/></span></span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255);color:#ffc000">想上分的小哥哥可以点我上分哦！！！</span></span></span></p><p style="text-align: center;"><span style="background-color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255);color:#ffc000"><br/></span></span></span></p><p style="text-align: center;"><span style="color:#ffc000">我会一直保护你！！！</span></p>
                                </div>
                            </div>
                            <div class="introduce_box comment_list">
                                <div class="introduce_title fl"><span>评价</span>/ COMMENTARIES</div>
                                <div class="fr appraise_grade">评分: <span>8.8</span></div>
                                <div class="clearfix"></div>
                                <style>
                                    .divPingjiaTag{
                                        background: #f5f5f5;
                                        padding:10px 13px;
                                        margin-top: 20px;
                                    }
                                    .divPingjiaTag p{
                                        border-left: solid 4px #fc831a;
                                        height: 16px;
                                        line-height: 16px;
                                        font-size: 14px;
                                        color: #666;
                                        text-indent: 8px;
                                        margin-bottom: 16px;
                                    }
                                    .divPingjiaTag ul{
                                        margin-top: 5px;
                                    }
                                    .divPingjiaTag li{
                                        float: left;
                                        height: 28px;
                                        border:solid 1px #e6e6e6;
                                        text-align: center;
                                        border-radius: 28px;
                                        line-height: 28px;
                                        padding:0 10px;
                                        background: #fff;
                                        margin-right: 24px;
                                        margin-bottom: 10px;
                                        cursor: default;
                                        font-size: 12px;
                                    }
                                    .divPingjiaTag li span{
                                        color: #fc831a;
                                    }
                                    .divPingjiaTag li.selected{
                                        background: #fff0e3;
                                        border:solid 1px #fff0e3;
                                    }
                                </style>
                                <div class="divPingjiaTag"><p>TA的印象标签</p><ul><li str="无敌辅助">无敌辅助<span>(2)</span></li><li str="软妹子">软妹子<span>(2)</span></li><li str="呆萌可爱">呆萌可爱<span>(1)</span></li><li str="可爱元宝">可爱元宝<span>(1)</span></li><li str="可爱到爆">可爱到爆<span>(1)</span></li><li str="是个狠人">是个狠人<span>(1)</span></li><li str="声音御姐">声音御姐<span>(1)</span></li></ul><div class="clearfix"></div></div>
                                <div class="clearfix"></div>
                                <div class="divCommentList">
                                    <div class="introduce_01">
                                        <div class="mt30">
                                            <div class="fl introduce_head_img_box"><img src="/picture/32_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                            <div class="fl ml10 mt10">
                                                <div class="fl grade_name mr10">在没*****</div>
                                                <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP1</span></div><img src="picture/1.png" class="fl mr15" style="height:20px;">
                                                <div class="fl commentTime">2018-12-29 07:16</div>
                                                <div class="clearfix"></div>
                                                <div class="mt10 width_grade"> 温柔</div>
                                            </div>
                                            <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star0.png"><img src="picture/star0.png"><img src="picture/star0.png"></div>
                                            <div class="clearfix"></div>
                                        </div>

                                        <div class="clearfix"></div>
                                    </div><div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="picture/78_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">太子*****</div>
                                            <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP1</span></div><img src="picture/1.png" class="fl mr15" style="height:20px;">
                                            <div class="fl commentTime">2018-12-07 23:03</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 没感觉</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star0.png"><img src="picture/star0.png"><img src="picture/star0.png"><img src="picture/star0.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div><div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="picture/30_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">花了*****</div>
                                            <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP1</span></div><img src="picture/1.png" class="fl mr15" style="height:20px;">
                                            <div class="fl commentTime">2018-12-03 02:53</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 666</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div><div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="/picture/12_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">杰森*****</div>
                                            <div class="grade_box fl  mr15"></div>
                                            <div class="fl commentTime">2018-11-27 05:30</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 挺好的，声音好听，普通哈飘准！</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div><div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="picture/12_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">杰森*****</div>
                                            <div class="grade_box fl  mr15"></div>
                                            <div class="fl commentTime">2018-11-27 05:29</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 很耐心，声音好听，看到的多多支持吧！</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div><div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="picture/56_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">。未*****</div>
                                            <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP3</span></div><img src="picture/3.png" class="fl mr15" style="height:20px;">
                                            <div class="fl commentTime">2018-11-24 22:35</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 是我铁锤妹妹没错了</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div>
                                </div>

                            </div>
                            <div class="see_more_btn_box">
                                <div class="see_more_btn" page="2" totalpage="2">查看更多评论......</div>
                            </div>
                        </div><div  class="content_center_right_content" >

                        <div>
                            <div class="fl">
                                <div class="fl">
                                    <div><img src="/picture/sound_3.png"></div>
                                    <div class="play_btn_box mt15" onclick="playAudio(this)" data-music="https://img3.tuwandata.com/uploads/play/mp3/15901215398133971355990.mp3"><img src="picture/play_btn.png" class="play_btn"><span id="spanTime1">19</span><img src="picture/play_audio.png"></div>
                                </div>
                                <div class="fl ml25">
                                    <div class="lol_name">声优聊天</div>
                                    <div class="lol_grading" style="float: left;">少御音</div>




                                    <div class="lol_order" style="clear: both;"><img src="/picture/order_btn.png"><span>接单次数：30次</span></div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="fr money_pocket_box">
                                <div class="money_pocket"><span style="margin-left:3px;">￥30</span>/小时</div>
                                <div class="money_original"></div>

                                <div class="fl money_pocket_bg money_pocket_bg_offline">离线</div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="introduce_box">
                            <div class="introduce_title"><span>介绍</span>/ INTRODUCE</div>
                            <div class="introduce_text_box">
                                <p style="text-align: center;">不将就</p><p style="text-align: center;">不妥协</p><p style="text-align: center;">宁缺毋滥</p>
                            </div>
                        </div>
                        <div class="introduce_box comment_list">
                            <div class="introduce_title fl"><span>评价</span>/ COMMENTARIES</div>
                            <div class="fr appraise_grade">评分: <span>10.0</span></div>
                            <div class="clearfix"></div>
                            <style>
                                .divPingjiaTag{
                                    background: #f5f5f5;
                                    padding:10px 13px;
                                    margin-top: 20px;
                                }
                                .divPingjiaTag p{
                                    border-left: solid 4px #fc831a;
                                    height: 16px;
                                    line-height: 16px;
                                    font-size: 14px;
                                    color: #666;
                                    text-indent: 8px;
                                    margin-bottom: 16px;
                                }
                                .divPingjiaTag ul{
                                    margin-top: 5px;
                                }
                                .divPingjiaTag li{
                                    float: left;
                                    height: 28px;
                                    border:solid 1px #e6e6e6;
                                    text-align: center;
                                    border-radius: 28px;
                                    line-height: 28px;
                                    padding:0 10px;
                                    background: #fff;
                                    margin-right: 24px;
                                    margin-bottom: 10px;
                                    cursor: default;
                                    font-size: 12px;
                                }
                                .divPingjiaTag li span{
                                    color: #fc831a;
                                }
                                .divPingjiaTag li.selected{
                                    background: #fff0e3;
                                    border:solid 1px #fff0e3;
                                }
                            </style>
                            <div class="divPingjiaTag"><p>TA的印象标签</p><ul><li str="仙女">仙女<span>(1)</span></li><li str="情感知心">情感知心<span>(1)</span></li></ul><div class="clearfix"></div></div>
                            <div class="clearfix"></div>
                            <div class="divCommentList">
                                <div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="picture/16_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">旅途*****</div>
                                            <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP1</span></div><img src="picture/1.png" class="fl mr15" style="height:20px;">
                                            <div class="fl commentTime">2018-12-28 16:24</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 很棒</div>
                                        </div>
                                        <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div><div class="introduce_01">
                                <div class="mt30">
                                    <div class="fl introduce_head_img_box"><img src="picture/16_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                    <div class="fl ml10 mt10">
                                        <div class="fl grade_name mr10">旅途*****</div>
                                        <div class="grade_box fl  mr15"><img src="picture/grade.png" class="grade_img"><span class="grade_span">VIP1</span></div><img src="picture/1.png" class="fl mr15" style="height:20px;">
                                        <div class="fl commentTime">2018-12-28 12:04</div>
                                        <div class="clearfix"></div>
                                        <div class="mt10 width_grade"> 666</div>
                                    </div>
                                    <div class="fr star_box"><img src="picture/star1.png"><img src="picture/star2.png"><img src="picture/star3.png"><img src="picture/star4.png"><img src="picture/star5.png"></div>
                                    <div class="clearfix"></div>
                                </div>

                                <div class="clearfix"></div>
                            </div><div class="introduce_01">
                                <div class="mt30">
                                    <div class="fl introduce_head_img_box"><img src="/picture/38_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                    <div class="fl ml10 mt10">
                                        <div class="fl grade_name mr10">清新*****</div>
                                        <div class="grade_box fl  mr15"><img src="/picture/grade_03.png" class="grade_img"><span class="grade_span2">VIP9</span></div><img src="/picture/9.gif" class="fl mr15" style="height:20px;"><div class="fl"><div class="top10" style="color:#ac5807;"><img class="topliangimg" src="/picture/liangplus_vip.png"><div class="liangcode"><span class="liangcodetext">豪 </span>799999</div></div></div>
                                        <div class="fl commentTime">2018-12-02 03:36</div>
                                        <div class="clearfix"></div>
                                        <div class="mt10 width_grade"> 1</div>
                                    </div>
                                    <div class="fr star_box"><img src="/picture/star1.png"><img src="/picture/star2.png"><img src="/picture/star3.png"><img src="/picture/star4.png"><img src="/picture/star5.png"></div>
                                    <div class="clearfix"></div>
                                </div>

                                <div class="clearfix"></div>
                            </div>
                            </div>

                        </div>

                    </div><div  class="content_center_right_content" style="display:none;">

                        <div>
                            <div class="fl">
                                <div class="fl">
                                    <div><img src="/picture/sleep_ed.png"></div>
                                    <div class="play_btn_box mt15" onclick="playAudio(this)" data-music="https://img3.tuwandata.com/uploads/play/mp3/1914131540966944.mp3"><img src="/picture/play_btn.png" class="play_btn"><span id="spanTime3">9</span><img src="picture/play_audio.png"></div>
                                </div>
                                <div class="fl ml25">
                                    <div class="lol_name">叫醒</div>
                                    <div class="lol_grading" style="float: left;">正式</div>




                                    <div class="lol_order" style="clear: both;"><img src="/picture/order_btn.png"><span>接单次数：1次</span></div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="fr money_pocket_box">
                                <div class="money_pocket"><span style="margin-left:3px;">￥5</span>/次</div>
                                <div class="money_original"></div>

                                <div class="fl money_pocket_bg money_pocket_bg_offline">离线</div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="introduce_box">
                            <div class="introduce_title"><span>介绍</span>/ INTRODUCE</div>
                            <div class="introduce_text_box">
                                <p>准时准点叫醒</p>
                            </div>
                        </div>
                        <div class="introduce_box comment_list">
                            <div class="introduce_title fl"><span>评价</span>/ COMMENTARIES</div>
                            <div class="fr appraise_grade">评分: <span>10.0</span></div>
                            <div class="clearfix"></div>
                            <style>
                                .divPingjiaTag{
                                    background: #f5f5f5;
                                    padding:10px 13px;
                                    margin-top: 20px;
                                }
                                .divPingjiaTag p{
                                    border-left: solid 4px #fc831a;
                                    height: 16px;
                                    line-height: 16px;
                                    font-size: 14px;
                                    color: #666;
                                    text-indent: 8px;
                                    margin-bottom: 16px;
                                }
                                .divPingjiaTag ul{
                                    margin-top: 5px;
                                }
                                .divPingjiaTag li{
                                    float: left;
                                    height: 28px;
                                    border:solid 1px #e6e6e6;
                                    text-align: center;
                                    border-radius: 28px;
                                    line-height: 28px;
                                    padding:0 10px;
                                    background: #fff;
                                    margin-right: 24px;
                                    margin-bottom: 10px;
                                    cursor: default;
                                    font-size: 12px;
                                }
                                .divPingjiaTag li span{
                                    color: #fc831a;
                                }
                                .divPingjiaTag li.selected{
                                    background: #fff0e3;
                                    border:solid 1px #fff0e3;
                                }
                            </style>
                            <div class="divPingjiaTag"><p>TA的印象标签</p><ul><li str="超级温柔">超级温柔<span>(1)</span></li></ul><div class="clearfix"></div></div>
                            <div class="clearfix"></div>
                            <div class="divCommentList">
                                <div class="introduce_01">
                                    <div class="mt30">
                                        <div class="fl introduce_head_img_box"><img src="/picture/43_avatar_middle.jpg" onerror="imgNoFound(this)"></div>
                                        <div class="fl ml10 mt10">
                                            <div class="fl grade_name mr10">qq*****</div>
                                            <div class="grade_box fl  mr15"><img src="/picture/grade.png" class="grade_img"><span class="grade_span">VIP3</span></div><img src="/picture/3.png" class="fl mr15" style="height:20px;">
                                            <div class="fl commentTime">2018-12-02 04:10</div>
                                            <div class="clearfix"></div>
                                            <div class="mt10 width_grade"> 666</div>
                                        </div>
                                        <div class="fr star_box"><img src="/picture/star1.png"><img src="/picture/star2.png"><img src="/picture/star3.png"><img src="/picture/star4.png"><img src="/picture/star5.png"></div>
                                        <div class="clearfix"></div>
                                    </div>

                                    <div class="clearfix"></div>
                                </div>
                            </div>

                        </div>

                    </div>
                    </div>
                </div>
                <!-- 右侧-评论-end-->
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="tips_box" style="display: none;">
            <div class="tips_gift_pirce"><img src="/picture/gift_pirce.png"></div>
            <div class="tips_gift_pirce_text">
            </div>
        </div>
    </div>
</div>
<style type="text/css">
    .all_bottom_bigbox {
        position: fixed;
        z-index: 9999;
        width: 100%;
        height: 100px;
        background-color: rgba(0, 0, 0, 0.1);
        bottom: 0px;
        display: none;
    }

    .all_bottom_bigbox .all_bottom_box {
        position: relative;
        width: 700px;
        float: right;
        z-index: 22;
        top: 0;
        margin-right: 200px;
    }

    .all_bottom_bigbox .all_bottom_text {
        width: 500px;
        height: 80px;
        line-height: 70px;
        position: absolute;
        right: 0px;
        top: 10px;
        color: #fff;
        font-size: 16px;
        text-indent: 20px;
    }

    .all_bottom_bigbox .all_bottom_text img {
        width: 57px;
        height: 57px;
    }

    .all_bottom_close {
        position: fixed;
        bottom: 52px;
        right: 0px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
        z-index: 9999;
        display: none;
        width: 48px;
        height: 48px;
        background: #000;
        border-bottom-left-radius: 62px;
        opacity: .5;
    }

    .all_bottom_box_parent {
        position: absolute;
    }

    .all_bottom_close img {
        width: 20px;
        position: absolute;
        left: 21px;
        top: 9px;
        transition: all cubic-bezier(0.22, 0.58, 0.12, 0.98) 0.4s;
    }

    .all_bottom_close img:hover {
        cursor: pointer;
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
    }

    .all_bottom_text span {
        color: #F9cd4f;
    }
</style>
<div class="all_bottom_bigbox">
    <div class="all_bottom_box_parent"></div>
</div>
<div class="all_bottom_close"><img src="/picture/close.png"></div>

<!-- loadPlaneGift()下-->
<script type="text/javascript">
    /*document.domain = 'tuwan.com';*/

    function setPlaneCookie(name, value, time) {
        var exp = new Date();
        exp.setTime(exp.getTime() + time * 1000);
        document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() + ";path=/;";
    }

    function getPlaneCookie(name) {
        var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
        if (arr = document.cookie.match(reg))
            return unescape(arr[2]);
        else
            return null;
    }

    function loadPlaneGift() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/getPlaneGift",
            type: "get",
            dataType: "jsonp",
            success: function(obj) {
                var md5 = obj.md5;
                var data = obj.data;

                //内容没变化
                var planeSign = getPlaneCookie('plane_sign');
                //planeSign = '';
                if (md5 == planeSign) {
                    $(".all_bottom_bigbox").hide();
                    $(".all_bottom_close").hide();
                    return;
                }
                setPlaneCookie('plane_sign', md5, obj.time);

                var str = '';
                var len = data.length;
                if (len > 0) {

                    for (var i = 0; i < len; i++) {
                        var user_nickname = "";
                        user_nickname = nameFormat(data[i].teachername, 24, -7)
                        var msg = '<a href="javascript:void(0)"><span>' + data[i].studentname + '</span></a> 送给 <a href="https://y.tuwan.com/play/' + data[i].teacherid + '" target="_blank"><span>' + user_nickname + '</span></a> ' + data[i].num + '个' + data[i].title + '<img src="picture/8c6de67d31ac41178234a50a1d81fe7a.gif' + data[i].pic + '">';
                        str += '<div class="all_bottom_box">\
			        		    <img src="picture/all_bottom.png">\
			        	        <div class="all_bottom_text">' + msg + '</div>\
			        	    </div>';
                    }
                }

                if (str != '') {
                    $(".all_bottom_box_parent").append(str);
                    $(".all_bottom_bigbox").show();
                    $(".all_bottom_close").show();
                }

                $(".all_bottom_box_parent").css("width", len * 900 + 1200 + "px")
                setTimeout(function() {
                    $(".all_bottom_box_parent").animate({ left: -(900 * len + 1200) + 'px' }, { duration: 8000 * len, easing: "linear" }, function() {
                        $(".all_bottom_bigbox").hide();
                        $(".all_bottom_close").hide();
                    });
                }, 1000)
                $(".all_bottom_close").on('mouseover', function() {
                    $('.all_bottom_close img').css({ "-webkit-transform": "rotate(360deg)" })
                }).mouseout(function() {
                    $('.all_bottom_close img').css({ "-webkit-transform": "rotate(0deg)" })
                })
                $("body").delegate('.all_bottom_close', "click", function() {
                    $(".all_bottom_bigbox").hide();
                    $(".all_bottom_close").hide();
                })
            }
        });
    }

    $(function() {
        loadPlaneGift();
    })
</script>

<div style="clear: both;"></div>
<!--尾部信息-->
<div id="footer" style="float: left; width: 100%;">
    <div class="footer_box">
        <a href="javascript:" title="" class="fl"><img src="/picture/consume1.jpg"></a>
        <a href="javascript:" title="" class="fl"><img src="/picture/consume2.jpg"></a>
        <a href="javascript:" title="" class="fl"><img src="/picture/consume3.jpg"></a>
        <a href="javascript:" title="" class="fl"><img src="/picture/consume4.jpg"></a>
        <div class="clearfix"></div>
        <div class="help_box mt30">
            <div class="fl ml35 pr30 border_right"><i class="icon custom mr10"></i>客服电话：<span class="custom_01">010-68608228</span><span class="custom_02">咨询时间：7X24小时</span></div>
            <div class="fl pl30" id="dd_kefu_pcbottom" style="cursor: pointer;"><i class="icon QQ mr10"></i>客服QQ：<span class="custom_01">800184580</span></div><div class="fl pl30"><span class="custom_02">咨询时间：7X24小时</span></div>
            <div class="fl ml40">
                <a href="javascript:" title="" class="fl help">帮助中心</a>
                <a href="javascript:" title="" class="fl help">服务保障</a>
                <a href="javascript:" title=""  class="fl help">陪玩守则</a>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="Copy">(京)字第05536号Copyright 2014-2020 TUWAN Corporation,All Rights Reserved</div>
    </div>
</div>
<div style="display:none">
    <script type="text/javascript">
        var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " https://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1000286078'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/q_stat.php%3Fid%3D1000286078' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " https://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261314581'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/q_stat.php%3Fid%3D1261314581' type='text/javascript'%3E%3C/script%3E"));</script>
</div>
<!-- WPA start -->
<script id="qd28521617238326075327d1c513a4a384b1e7d01503" src="js/c927102b616e496bbf6a1f223399540c.js" charset="utf-8" async defer></script>
<!-- WPA end -->
<script src="js/tuwan_message.js"></script>
<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
    <style>
    .yw-gg-float{
        position: fixed;left: 0;bottom: 138px;width: 100%;height: 0;z-index: 999;
    }
    .yw-gg-float .yw-big-show{
        position: relative; display: block; width: 1100px; height: 138px; display: none; background-image: url(images/yanwo-big.png); margin: 0 auto;cursor: default;
    }
    .yw-gg-float .yw-big-show .yw-close{
        position: absolute; width: 19px; height: 19px; background-image: url(images/yanwo-close.png); right: 12px; top: 30px; cursor: pointer;
    }
    .yw-gg-float .yw-jump{
        display: block; position: absolute; width: 100%; height: 100%; left: 0; top: 0;
    cursor: default;
    }
    .yw-gg-float .yw-small-show{
        width: 161px; height: 120px; display: none; position: absolute; left: 0; top: 0; background-image: url(images/yanwo-small.png); cursor: default;
    }
    .yw-gg-float .yw-open{
        width: 20px; height: 36px; position: absolute; right: 13px; top: 40px; background-image: url(images/yanwo-open.png); cursor: pointer;
    }
</style>
</head>
<body>
<div class="yw-gg-float">
    <div class="yw-big-show">
        <a href="javascript:void(0)" class="yw-jump"></a>
        <div class="yw-close"></div>
    </div>
    <div class="yw-small-show" style="display: none;">
        <a href="javascript:void(0)" class="yw-jump"></a>
        <div class="yw-open"></div>
    </div>
</div>
    <script>
        var ywJumpUrl = "javascript:void(0)";
    //var ywJumpUrl = "http://y.tuwan.com/"
    var close = "1";
    var myDate = new Date();
    //获取当前年
    var year = myDate.getFullYear();
    //获取当前月
    var month = myDate.getMonth() + 1;
    //获取当前日
    var date = myDate.getDate();
    var nowtime = year.toString() +  month.toString() + date.toString();

    var localtime = localStorage.getItem("yy-gg-time");

    if(localtime){
        if(localtime !== nowtime){
            close = "1";
            localStorage.setItem("yy-gg-state", close);
        }
    }
    localStorage.setItem("yy-gg-time", nowtime);

    var $ysGgFloat = $(".yw-gg-float");
    $ysGgFloat.find(".yw-jump").prop("href", ywJumpUrl);
    $ysGgFloat.find(".yw-close").on("click", function(){
        close = "0";
        localStorage.setItem("yy-gg-state", close);
        $ysGgFloat.find(".yw-big-show").hide();
        $ysGgFloat.find(".yw-small-show").show();
    });
    $ysGgFloat.find(".yw-small-show .yw-open").on("click", function(){
        close = "1";
        localStorage.setItem("yy-gg-state", close);
        $ysGgFloat.find(".yw-big-show").show();
        $ysGgFloat.find(".yw-small-show").hide();
    });

    if(localStorage.getItem("yy-gg-state") == "0"){
        $('.yw-big-show').hide();
        $('.yw-small-show').show();
    } else{
        $('.yw-big-show').show();
        $('.yw-small-show').hide();
    }
</script>
</body>
</html>
 -->
<!-- 当前所选时间 -->
<input type="hidden" id="index" value="" />
<script type="text/javascript">
    var isAlertBiaoBai = false;
    //定义全局变量
    $(".coupon_show_tab_content input").tag = 0;
    var dtid = 20004;
    var paramJson = {"35077":{"gameIcon":"http:\/\/res.tuwan.com\/templet\/play\/teacher\/images\/lol.png","gameTitle":"\u7ebf\u4e0aLOL","sile":"1","price":"3700","timeStart":"00:00","timeStart2":"00.00","timeEnd":"24:00","timestatus":0,"timeEnds":"24.00","typeflag":1,"typeunit":"\u5c0f\u65f6"},"53430":{"gameIcon":"http:\/\/res.tuwan.com\/templet\/play\/teacher\/images\/sound_3.png","gameTitle":"\u58f0\u4f18\u804a\u5929","sile":"1","price":"3000","timeStart":"00:00","timeStart2":"00.00","timeEnd":"24:00","timestatus":0,"timeEnds":"24.00","typeflag":1,"typeunit":"\u5c0f\u65f6"},"53435":{"gameIcon":"http:\/\/res.tuwan.com\/templet\/play\/teacher\/images\/sleep_ed.png","gameTitle":"\u53eb\u9192","sile":"1","price":"500","timeStart":"00:00","timeStart2":"00.00","timeEnd":"24:00","timestatus":0,"timeEnds":"24.00","typeflag":4,"typeunit":"\u6b21"}};
    var teacherid = 1355990;
    var teacherName = '嘴硬'; //导师名
    var payType = 0; //支付类型，默认微信
    var payWhere = 0; //哪块支付(0 问答, 1 问题查看，2礼物，3微信查看，)
    var payValue = 0; //支付值（多类型）
    var uid = 0;
    var giftId = 1;
    var giftJson = {"1":{"title":"\u9999\u543b","price":0.1,"diamond":1,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1629711503976254.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/8180581537151602.gif"},"96":{"title":"\u70df\u706b","price":1,"diamond":10,"desc":"\u5143\u65e6\u8282\u65e5\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1142101545745926.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1908701545810147.svga"},"77":{"title":"\u5e73\u5b89\u679c","price":1,"diamond":10,"desc":"\u5723\u8bde\u8282\u4e13\u5c5e\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1869951544500364.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/8920221544500364.gif"},"34":{"title":"\u73ab\u7470","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1898151532696070.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1622961537151644.gif"},"57":{"title":"\u68d2\u68d2\u7cd6","price":5.2,"diamond":52,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2049781539250469.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/6352111539250974.gif"},"68":{"title":"\u611f\u6069\u7684\u5fc3","price":9.9,"diamond":99,"desc":"\u611f\u6069\u8282\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1292451542357555.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1735071542357555.gif"},"66":{"title":"\u91d1\u8bdd\u7b52","price":19.8,"diamond":198,"desc":"\u70b9\u6b4c\u4e13\u7528","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1456841541580138.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/4855201541580138.gif"},"98":{"title":"\u8bb8\u613f\u706f","price":66.6,"diamond":666,"desc":"\u5143\u65e6\u8282\u65e5\u793c\u7269\r\n\u6536\u52301\u4e2a\u83b7\u5f97\u5b9e\u529b\u8131\u5355\r\n\u6536\u523010\u4e2a\u83b7\u5f97\u5bb6\u91cc\u6709\u77ff \r\n\u6536\u523052\u4e2a\u83b7\u5f97\u4eba\u751f\u8d62\u5bb6","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1278231545732119.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2029531545810139.svga"},"99":{"title":"\u5143\u65e6\u793c\u82b1","price":201.9,"diamond":2019,"desc":"\u5143\u65e6\u4e13\u5c5e\u793c\u7269 \u9b45\u529b\u503c+\u8d21\u732e\u503c\u7ffb\u500d","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1300931545732107.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1552001545748686.svga"},"5":{"title":"\u8868\u767d","price":199,"diamond":1990,"desc":"\u83b7\u5f97\u8868\u767d\u4f4d\uff081\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2090801542354414.gif","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1311291537151290.gif"},"6":{"title":"\u94bb\u6212","price":520,"diamond":5200,"desc":"\u83b7\u5f97\u8868\u767d\u4f4d\uff087\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1417281503976535.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/6840631537151276.gif"},"8":{"title":"\u522b\u5885","price":3666,"diamond":36660,"desc":"\u5bfc\u5e08\u83b7\u8d60\u4e13\u5c5e\u4e3b\u9875\u76ae\u80a4\uff0830\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1775311542354534.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2865841537151253.gif"},"37":{"title":"\u65e5\u51a0","price":99.9,"diamond":999,"desc":"\u83b7\u5f97\u51a0\u540d\uff081\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/6072051531895135.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/3789351537151242.gif"},"9":{"title":"\u5468\u51a0\u540d","price":520,"diamond":5200,"desc":"\u83b7\u5f97\u51a0\u540d\uff087\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1540621505120933.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/8843111537151224.gif"},"10":{"title":"\u6708\u51a0\u540d","price":1314,"diamond":13140,"desc":"\u83b7\u5f97\u51a0\u540d\uff0830\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1104631505120967.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1563911537151213.gif"},"55":{"title":"\u5e74\u51a0\u540d","price":13140,"diamond":131400,"desc":"\u83b7\u5f97\u51a0\u540d\uff08365\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1130651539409858.gif","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2131441539409858.gif"},"78":{"title":"\u5723\u8bde\u6811","price":66.6,"diamond":666,"desc":"\u6d3b\u52a8\u671f\u95f4\uff1a\r\n\u6536\u52301\u4e2a\u83b7\u5f97\u5723\u8bde\u7cbe\u7075\r\n\u6536\u523010\u4e2a\u83b7\u5f97\u5723\u8bde\u5929\u4f7f\r\n\u6536\u523052\u4e2a\u83b7\u5f97\u5723\u8bde\u8001\u4eba","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2133071544603843.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1248441544585372.svga"},"79":{"title":"\u5723\u8bde\u5feb\u4e50","price":122.5,"diamond":1225,"desc":"\u5723\u8bde\u4e13\u5c5e\u793c\u7269\r\n\u9b45\u529b\u503c+\u8d21\u732e\u503c\u7ffb\u500d","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/8823631544521477.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1326871544521607.svga"},"14":{"title":"\u5bcc\u8c6a\u63a8\u8350","price":288,"diamond":2880,"desc":"\u83b7\u5f97\u5bcc\u8c6a\u63a8\u83501\u5929","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5123141508487078.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1531171537151157.gif"},"17":{"title":"\u80e1\u841d\u535c","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2132001515566355.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1162251537151120.gif"},"25":{"title":"\u516d\u5473\u5e1d\u738b\u4e38","price":0.2,"diamond":2,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/3653191516859916.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2119251537151001.gif"},"2":{"title":"\u9ec4\u74dc","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1427371503976282.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2009371537151574.gif"},"3":{"title":"\u86cb\u7cd5","price":9.9,"diamond":99,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1182661503976353.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/7906421537151548.gif"},"4":{"title":"\u706b\u9505","price":66.6,"diamond":666,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1492901503976397.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2003981537151302.gif"},"7":{"title":"\u6e38\u8f6e","price":1314,"diamond":13140,"desc":"\u5bfc\u5e08\u83b7\u8d60\u4e13\u5c5e\u4e3b\u9875\u76ae\u80a4\uff087\u5929\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1177411503976586.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/5899051537151264.gif"},"11":{"title":"\u4eb2\u4eb2","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5864281508485690.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2028441537151203.gif"},"12":{"title":"\u62b1\u62b1","price":13,"diamond":130,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/3049721508485782.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2566521537151183.gif"},"13":{"title":"\u4e3e\u9ad8\u9ad8","price":30,"diamond":300,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1203791508485879.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/4486911537151172.gif"},"15":{"title":"\u738b\u724c","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/8912791509007250.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1384691537151144.gif"},"18":{"title":"\u91d1\u55d3\u5b50","price":5.2,"diamond":52,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1471041516360978.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1011231537151112.gif"},"19":{"title":"\u91d1\u8bdd\u7b52","price":18.8,"diamond":188,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5394001516361011.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1181911537151104.gif"},"20":{"title":"\u70db\u5149\u665a\u9910","price":52,"diamond":520,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/9938431516361071.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1457601537151088.gif"},"21":{"title":"\u8c6a\u534e\u8dd1\u8f66","price":99.9,"diamond":999,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2042141516361116.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1262241537151074.gif"},"22":{"title":"\u4e18\u6bd4\u7279","price":199.9,"diamond":1999,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1847521516361172.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/9175951537151043.gif"},"23":{"title":"\u6d41\u661f\u96e8","price":520,"diamond":5200,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1634971516672651.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/4023181537151030.gif"},"24":{"title":"\u6d6a\u6f2b\u544a\u767d","price":1314,"diamond":13140,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/4712311516361252.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1009211537151016.gif"},"26":{"title":"\u4e4c\u9e21\u767d\u51e4\u4e38","price":5,"diamond":50,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/6297901516864314.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1818181537150988.gif"},"27":{"title":"\u5341\u5168\u5927\u8865\u4e38","price":20,"diamond":200,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/7239831516860034.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1223111537150968.gif"},"30":{"title":"\u5e73\u5e95\u9505","price":1,"diamond":10,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2604841524189646.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2110301537151561.gif"},"31":{"title":"\u4e09\u7ea7\u5934","price":9.9,"diamond":99,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/6570361524189678.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1991991537151536.gif"},"32":{"title":"\u4eca\u665a\u5403\u9e21","price":66.6,"diamond":666,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1339521524189703.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/8472751537151357.gif"},"35":{"title":"\u8db3\u7403","price":9.9,"diamond":99,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5628841529993214.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1366391537151630.gif"},"36":{"title":"\u5927\u529b\u795e\u676f","price":66.6,"diamond":666,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1105231529993225.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1579681537151618.gif"},"38":{"title":"\u7231\u5fc3\u5de7\u514b\u529b","price":12.8,"diamond":128,"desc":"","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1741411533870586.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1863031537151696.gif"},"39":{"title":"\u91d1\u8bdd\u7b52","price":1,"diamond":10,"desc":"\u6d3b\u52a8\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/8582611535684791.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1271451537151681.png"},"53":{"title":"\u5c0f\u7ea2\u65d7","price":1,"diamond":10,"desc":"2018\u56fd\u5e86\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5095061537439623.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/5192931537439623.gif"},"54":{"title":"\u4e2d\u79cb\u6708\u997c","price":1,"diamond":10,"desc":"\u4e2d\u79cb\u8282\u5feb\u4e50~","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1722481537528379.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/7139381537528175.gif"},"56":{"title":"\u6211\u7231\u4f60","price":5.2,"diamond":52,"desc":"520\u7231\u7684\u6570\u5b57","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/5122601539247626.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/7343111539247626.gif"},"59":{"title":"\u7cd6\u679c","price":1,"diamond":10,"desc":"\u4e07\u5723\u8282\u7cd6\u679c\r\n","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1530741540438516.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/5208081540439036.gif"},"60":{"title":"\u5357\u74dc","price":9.9,"diamond":99,"desc":"\u4e07\u5723\u8282\u5357\u74dc","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2020141540438652.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/6567531540439027.gif"},"61":{"title":"\u9ec4\u91d1\u9ab7\u9ac5\u5934","price":66.6,"diamond":666,"desc":"\u4e07\u5723\u8282\u9ab7\u9ac5\u5934","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1266551540438676.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/2772041540439018.gif"},"62":{"title":"\u72d7\u7cae","price":1,"diamond":10,"desc":"\u53cc\u5341\u4e00\u8282\u65e5\u6d3b\u52a8","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1388451541067208.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/5470661541067208.gif"},"63":{"title":"IG\u725bB","price":66.6,"diamond":666,"desc":"\u4e3aIG\u559d\u5f69\uff0c\u6635\u79f0\u524d\u52a0IG\u56fe\u6807(1\u5929)","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1851471541263704.gif","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/7290671541261697.gif"},"64":{"title":"\u5355\u8eab\u6c6a","price":11.1,"diamond":111,"desc":"\u53cc\u5341\u4e00\u6d3b\u52a8\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2110071541481792.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1832471541481792.gif"},"65":{"title":"\u7231\u795e\u7737\u987e","price":111.1,"diamond":1111,"desc":"\u7231\u795e\u7737\u987e\uff08\u9b45\u529b\u503c+\u8d21\u732e\u503c\u7ffb\u500d\uff09","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/4108091541563466.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1658071541481842.gif"},"67":{"title":"\u611f\u6069\u6709\u4f60","price":1,"diamond":10,"desc":"\u611f\u6069\u8282\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/2077011542357521.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/1756491542357521.gif"},"69":{"title":"\u706b\u9e21\u5927\u9910","price":66.6,"diamond":666,"desc":"\u611f\u6069\u8282\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1509571542357546.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/4459871542357546.gif"},"70":{"title":"\u5e74\u5ea6\u76db\u5178","price":66.6,"diamond":666,"desc":"\u5e74\u5ea6\u76db\u5178\u4e13\u7528","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/8408701542771029.gif","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/8631461542771029.gif"},"76":{"title":"\u5e73\u5b89\u679c","price":0.1,"diamond":1,"desc":"\u5723\u8bde\u8282\u4e13\u5c5e\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1799751544490410.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/5577431544490291.gif"},"97":{"title":"\u4e8c\u5468\u5e74\u8d3a\u5361","price":9.9,"diamond":99,"desc":"\u5143\u65e6\u665a\u4f1a\u8d60\u9001\u793c\u7269","pic":"http:\/\/img3.tuwandata.com\/uploads\/play\/1232351545735422.png","gifpic":"https:\/\/img3.tuwandata.com\/uploads\/play\/3510261545815732.svga"}};
    var giftNum = 0;
    var giftAnonymous = 0;
    var giftId2 = 0;
    var gameid = 0;
    var gameTitle = '';
    var gameIcon = '';
    var tinfoid = 53430;
    var vip = 0;
    var vipSile = 1;
    var disjson = {"35077":{"7":{"num":0,"status":0},"8":{"num":0,"status":0},"9":{"num":0,"status":0}},"53430":{"7":{"num":0,"status":0},"8":{"num":0,"status":0},"9":{"num":0,"status":0}},"53435":{"7":{"num":0,"status":0},"8":{"num":0,"status":0},"9":{"num":0,"status":0}}};
    var currentPage = 1;
    var tagmark="";

    var sile = 1;
    var price = 0;
    var money = 0;
    var startDate = '2018-12-29';
    var endDate = '2019-01-02';
    var NewDateStart = '2018-12-29';
    var NewDateEnd = '2019-01-02';
    var timestatus = '';
    var starttime = '';
    var starttime2 = '';
    var datetimes = '';
    var datetimes1 = '';
    var getDate = 0;
    var typeflag = 0;
    var position = 0;
    var alipay = '';
    var wechat = '';
    var packageid = 0;
    var successUrl = location.href;
    var qqFlag = 1;
    var flag = false;
    var giftType = 0;
    var prices = '';
    var indList = '';
    var fromType = 1;
    var worth = 0;
    var isPay99 = false;
    //余额支付
    function payMoney(payurl, type) {
        if (teacherid == uid) {
            alert("导师不能给自己送礼物噢！");
            return;
        }

        $.ajax({
            url: payurl,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.code == -2) {
                    initDisplay();
                    $(".pop_up_box").show();
                    $(".about_box1").hide();
                    $(".no_money_box .no_money_wran").html('余额不足，是否现在充值？');
                    $(".no_money_box a").attr('href', 'https://y.tuwan.com/recharge/?tab=money');
                    $(".no_money_box").show();
                } else if(obj.code == 0) {
                    initDisplay();
                    if (payWhere == 3) {
                        alert('支付成功');
                        loadTeacherWx();
                    } else if(payWhere == 2) {
                        giftCallback(type);
                        if (giftType == 1) {
                            setHaveGift();
                        }
                    }
                } else if(obj.code == -7 || obj.code == 3) {
                    alert("赠送失败，请联系客服");
                } else if(obj.code == 2) {
                    alert("包裹礼物不足");
                } else if(obj.code == -1) {
                    $('#index_pup_box').show();
                } else {
                    alert("未知错误，请联系客服");
                }
            }
        });
    }
    //钻石支付
    function payDiamond(payurl, type) {
        if (teacherid == uid) {
            alert("导师不能给自己送礼物噢！");
            return;
        }

        $.ajax({
            url: payurl,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -2) {
                    initDisplay();
                    $(".pop_up_box").show();
                    $(".about_box1").hide();
                    $(".no_money_box .no_money_wran").html('钻石不足，是否现在充值？');
                    $(".no_money_box a").attr('href', 'https://y.tuwan.com/recharge/?tab=diamond');
                    $(".no_money_box").show();
                } else if(obj.error == 0) {
                    initDisplay();
                    giftCallback(type);
                    if (giftType == 1) {
                        setHaveGift();
                    }
                } else if(obj.error == 2) {
                    alert("礼物不存在，请更换礼物");
                } else if(obj.error == -1) {
                    $('#index_pup_box').show();
                } else {
                    alert("未知错误，请联系客服");
                }
            }
        });
    }
    //礼物回调处理
    var gid = 0;
    function giftCallback(type) {
        //alert("赠送成功");
        //播放动画
        gid = (type == 1) ? giftId : giftId2;
        $(".pop_gift img").attr("src", giftJson[gid].gifpic);
        $(".pop_gift span").html('x'+ giftNum);
        $(".pop_gift").show();
        if(gid==65){
            setTimeout("giftCallbackSet()", 3000);
        }else {
            setTimeout("giftCallbackSet()", 1000);
        }

    }
    function giftCallbackSet() {
        $(".pop_gift img").attr("src", "");
        //$(".pop_gift span").html('x1');
        $(".pop_gift").hide();

        loadUserGift();
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/getMoney",
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                $(".yuewanbi").html("剩余钻石："+ obj.diamond);
                $(".money_01_bigbox .current_value").html(obj.diamond);
                $(".current_money").html(obj.money);
            }
        });

        if (gid == 5 || gid == 6) { //表白
            // checkConfession();
            if(isAlertBiaoBai){
                window.location.href = location.href;
            }
            else{
                checkConfession();
            }

        } else if (gid == 9 || gid == 10 || gid == 37 || gid == 55) { //冠名
            checkNaming();
        } else if (gid == 7 || gid == 8) { //皮肤
            window.location.href = location.href;
        }
    }
    function get_play_ajax(todaytime){
        $("#shijian").html('');
        if(timestatus == 1){
            $.ajax({
                url: "https://api.tuwan.com/playteach/?type=play&data=getdates&format=jsonp&id="+ tinfoid,
                type: "get",
                dataType: "jsonp",
                success: function (obj){
                    if(todaytime == obj.dateStart){
                        getDate = 1;
                        starttime3 = obj.timeStart.replace(/\:/g,'.') * 1;
                        datetimes3 = '24.00';
                    }else if(todaytime == obj.dateEnd){
                        getDate = 1;
                        starttime3 = '00.00';
                        datetimes3 = obj.timeEnd.replace(/\:/g,'.') * 1;
                    }else if(todaytime == NewDateEnd){
                        getDate = 1;
                        starttime3 = '00.00';
                        datetimes3 = obj.timeEnd.replace(/\:/g,'.') * 1;
                    }else{
                        getDate = 0;
                    }
                    get_play_list(todaytime);
                }
            })
        }else{
            get_play_list(todaytime);
        }
    }
    function get_play_list(todaytime) {
        console.log("https://api.tuwan.com/playteach/?type=play&data=getRecord&format=jsonp&id=" + teacherid + "&today="+todaytime)
        $.ajax({
            url: "https://api.tuwan.com/playteach/?type=play&data=getRecord&format=jsonp&id=" + teacherid + "&today="+todaytime,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                //var myobj=eval(obj);
                var todayArr = new Array();
                $('.table_time table td').each(function(){
                    $(this).removeClass();
                    $(this).removeClass();
                    $(this).unbind("click"); //移除click
                })
                var oDate = new Date();
                var year = oDate.getFullYear();
                var month = oDate.getMonth()+1;
                var day = oDate.getDate();
                var getHours = oDate.getHours();
                var getMinutes = oDate.getMinutes();
                var nianyueri = year+'-'+month+'-'+day;
                if(getMinutes < 10){
                    getMinutes = '0' + getMinutes;
                }
                var shifen = getHours+'.'+getMinutes;
                var shifen = (shifen.split(".")[0]) < 10 ? '0'+ shifen +'' : shifen;
                if(obj !== null){
                    myobj = obj.list;
                    if(obj.nextlist !== null || obj.nextlist !== ''){
                        if(obj.nextlist['dateEnd'] > todaytime){
                            indList = obj.nextlist['startTime'].replace(/\:/g,'.') * 1;
                        }
                    }
                }

                if(myobj == false || myobj == null){
                    $('.table_time table td').each(function(){
                        var timenum = $(this).html().replace(/\:/g,'.') * 1;

                        if($('.form_datetime').val() == NewDateStart){
                            if (starttime2 > datetimes1) { //如果开始时间大于结束时间
                                if (timenum >= datetimes1 && timenum < starttime2) {
                                    $(this).addClass("no_td_add");
                                }
                            } else {
                                if(timenum < starttime2){
                                    $(this).addClass("no_td_add");
                                }
                            }
                        }
                        if($('.form_datetime').val() == NewDateEnd){
                            if(timenum >= datetimes1){
                                $(this).addClass("no_td_add");
                            }
                            if(timenum == '23.3') $(this).addClass("nos_td_add");
                        }

                        if(timestatus == 1 && getDate == 0){
                            if(timenum < starttime2 && timenum >= datetimes1){
                                $(this).addClass("no_td_add");
                            }
                            if(endday < statrday && todaytime == myobj[j].dateEnd){
                                statrday = '00.00';
                            }else if(endday < statrday){
                                endday = '24.00';
                            }
                        }else if(timestatus == 1 && getDate == 1){
                            if(timenum < starttime3 || timenum >= datetimes3){
                                $(this).addClass("no_td_add");
                            }
                        }else{
                            if(timenum < starttime2 || timenum >= datetimes1){
                                $(this).addClass("no_td_add");
                            }
                        }
                        if(starttime == '00:00' && datetimes == '24:00'){
                            if(endday < statrday && todaytime == myobj[j].dateEnd){
                                statrday = '00.00';
                            }else if(endday < statrday){
                                endday = '24.00';
                            }
                        }
                        if(timenum <= shifen && nianyueri == todaytime){
                            $(this).addClass("no_td_add");
                        }
                    })
                    for(var i= 0; i < 49; i++){
                        if(i>0){
                            var OverNode = $('.table_time table td').eq(i-1).attr("class");
                            var NowNode = $('.table_time table td').eq(i).attr("class");
                            if(OverNode != NowNode && NowNode == 'no_td_add'){
                                $('.table_time table td').eq(i-1).addClass("nos_td_add");
                            }
                        }
                    }
                    if($('.form_datetime').val() > NewDateEnd){
                        $('.table_time table td').addClass('no_td_add');
                    }
                    if(starttime == '00:00' && datetimes == '24:00' && $('.form_datetime').val() !== NewDateEnd){
                        $('.table_time table td').eq(47).attr("class",'');
                    }
                    //下一天0点被预约
                    if(indList === 0) {
                        $('.table_time table td').eq(47).addClass("nos_td_add");
                    }
                    $('.table_time table td').each(function(){
                        if($(this).attr("class") !== 'no_td_add' && $(this).attr("class") !== 'nos_td_add' && $(this).attr("class") !== 'no_td_add nos_td_add'){
                            $(this).click(function() {
                                setDateData($(this));
                            });
                        }
                    })
                }else{
                    for(var j= 0; j < myobj.length; j++){
                        var statrday = myobj[j].startTime.replace(/\:/g,'.') * 1;
                        var endday = myobj[j].endTime.replace(/\:/g,'.') * 1;
                        if(myobj[j].CommentTime !== '' && myobj[j].CommentTime !== null && myobj[j].CommentTime !== undefined) myobj[j].dateEnd = getLocalTime(myobj[j].CommentTime,'');
                        if(myobj[j].endTime == '00:00'  && todaytime >= myobj[j].dateEnd) {
                            myobj[j].dateEnd = getLocalTime(myobj[j].CommentTime - 806400,'');
                        }
                        if(endday == 0){
                            endday = '24.00';
                        }

                        $('.table_time table td').each(function(){
                            var timenum = $(this).html().replace(/\:/g,'.') * 1;

                            if($('.form_datetime').val() == NewDateStart){
                                if (starttime2 > datetimes1) { //如果开始时间大于结束时间
                                    if (timenum >= datetimes1 && timenum < starttime2) {
                                        $(this).addClass("no_td_add");
                                    }
                                } else {
                                    if(timenum < starttime2){
                                        $(this).addClass("no_td_add");
                                    }
                                }
                            }
                            if($('.form_datetime').val() == NewDateEnd){
                                if(timenum >= datetimes1){
                                    $(this).addClass("no_td_add");
                                }
                                if(timenum == '23.3') $(this).addClass("nos_td_add");
                            }
                            if(timestatus == 1 && getDate == 0){
                                if(timenum < starttime2 && timenum >= datetimes1){
                                    $(this).addClass("no_td_add");
                                }
                                if(endday < statrday && todaytime == myobj[j].dateEnd){
                                    statrday = '00.00';
                                }else if(endday < statrday){
                                    endday = '24.00';
                                }
                            }else if(timestatus == 1 && getDate == 1){
                                if(timenum < starttime3 || timenum >= datetimes3){
                                    $(this).addClass("no_td_add");
                                }
                                if(endday < statrday){
                                    if(timenum >= statrday && timenum < '24:00'){
                                        $(this).addClass("no_td_add");
                                    }
                                }
                            }else{
                                if(timenum < starttime2 || timenum >= datetimes1){
                                    $(this).addClass("no_td_add");
                                }
                            }
                            if(starttime == '00:00' && datetimes == '24:00'){
                                if(endday < statrday && todaytime == myobj[j].dateEnd){
                                    statrday = '00.00';
                                }else if(endday < statrday){
                                    endday = '24.00';
                                }
                            }
                            if(timenum >= statrday && timenum < endday && todaytime <= myobj[j].dateEnd){
                                $(this).addClass("no_td_add");
                            }
                            if(timenum <= shifen && nianyueri == todaytime){
                                $(this).addClass("no_td_add");
                            }
                        })
                    }

                    //下一天0点被预约
                    if(indList === 0) {
                        $('.table_time table td').eq(47).addClass("nos_td_add");
                    }

                    if(starttime == '00:00' && datetimes == '24:00'){
                        var m = 48;
                    }else{
                        var m = 49;
                    }
                    for(var i= 0; i < m; i++){
                        if(i>0){
                            var OverNode = $('.table_time table td').eq(i-1).attr("class");
                            var NowNode = $('.table_time table td').eq(i).attr("class");
                            if(OverNode != NowNode && NowNode == 'no_td_add'){
                                $('.table_time table td').eq(i-1).addClass("nos_td_add");
                            }
                        }
                    }
                    $('.table_time table td').each(function(){
                        if($(this).attr("class") !== 'no_td_add' && $(this).attr("class") !== 'nos_td_add' && $(this).attr("class") !== 'no_td_add nos_td_add'){
                            $(this).click(function() {
                                setDateData($(this));
                            });
                        }
                    })
                }
                $('.table_time table td').each(function () {
                    if ($(this).hasClass("no_td_add")) {

                    }else{
                        console.log($(this).html())
                        setDateData($(this));
                        return false
                    }
                })
                // console.log($('.table_time table td.no_td_add').length)
                // console.log($('.table_time table td').eq($('.table_time table td.no_td_add').length))
                // setDateData($('.table_time table td').eq($('.table_time table td.no_td_add').length))
            }
        })
    }
    function ClickHour(index){
        var max = '';
        var positionStatus = 0;
        for(var i= index; i < 48; i++){
            var OverNode = $('.table_time table td').eq(i).attr("class");
            if(OverNode == 'nos_td_add'){
                positionStatus = 1;
                break;
            }else{
                positionStatus = 0;
            }
        }
        if (timestatus == 1){
            var nowVal = $('.table_time table td').eq(index).html();
            var nowVal = nowVal.replace(/\:/g,'.') * 1;
            if(nowVal >= '00.00' && nowVal < datetimes1){
                for(var i= index; i < 48; i++){
                    var OverNode = $('.table_time table td').eq(i).attr("class");
                    if(OverNode == 'nos_td_add'){
                        position = Math.floor((1+(i-index)*1)/2);
                        break;
                    }
                }
            }else if(nowVal >= starttime2 && nowVal < '24.00'){
                if(positionStatus == 1){
                    for(var i= index; i < 48; i++){
                        var OverNode = $('.table_time table td').eq(i).attr("class");
                        if(OverNode == 'nos_td_add'){
                            position = Math.floor((1+(i-index)*1)/2);
                            break;
                        }
                    }
                }else{
                    var a = 48 - parseInt(index);
                    if(indList){
                        indList = ''+indList;
                        if(indList.indexOf('3') > 0){
                            max = Math.floor((indList * 2) + 30/30);
                        }else{
                            max = Math.floor((indList * 2));
                        }
                    }else{
                        max = parseInt(datetimes1) * 2;
                    }
                    position = Math.floor((a + max)/2);
                }
            }
        }else if(starttime == '00:00' && datetimes == '24:00' && $('.form_datetime').val() !== NewDateEnd){
            if(positionStatus == 1){
                for(var i= index; i < 48; i++){
                    var OverNode = $('.table_time table td').eq(i).attr("class");
                    if(OverNode == 'nos_td_add'){
                        position = Math.floor((1+(i-index)*1)/2);
                        break;
                    }
                }
            }else{
                var a = 48 - parseInt(index);
                if(indList){
                    indList = ''+indList;
                    if(indList.indexOf('3') > 0){
                        max = Math.floor((indList * 2) + 30/30);
                    }else{
                        max = Math.floor((indList * 2));
                    }
                }else{
                    max = parseInt(datetimes1) * 2;
                }
                position = Math.floor((a + max)/2);
            }
            if(position > 23) position = 23;
        }else{
            for(var i= index; i < 49; i++){
                var OverNode = $('.table_time table td').eq(i).attr("class");
                if(OverNode == 'nos_td_add'){
                    position = Math.floor((1+(i-index)*1)/2);
                    break;
                }
            }
        }
    };
    //减法
    function Subtr(arg1,arg2){
        var r1,r2,m,n;
        try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
        try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
        m=Math.pow(10,Math.max(r1,r2));
        n=(r1>=r2)?r1:r2;
        return ((arg1*m-arg2*m)/m).toFixed(n);
    }
    var coupon = [];
    var silePriceStr = priceStr = zongjia = ucid = 0;
    var zhekouMoney=0, shifuMoney=0;
function text_(){
        var hour = parseInt($("#hour_").html());
        var html = '';
        var vipStr = '';
        var newSile = 1;

        if (sile < 1) { //以导师折扣为准
            html = '<div class="mt15 order_grade">&nbsp;</div>';
            newSile = sile;
        } else if(vipSile < 1) {
            vipStr = ' <img src="picture/ranking ('+ vip +').png">   vip';
            sileStr = accMul(vipSile, 10);
            html = '<div class="mt15 order_grade" style="float:left;    margin-left: 140px;">您将享有<span>'+ sileStr +'</span>折优惠</div>';
            newSile = vipSile;
        } else {
            html = '<div class="mt15 order_grade">&nbsp;</div>';
        }

        // console.log(disjson[tinfoid])
        flagdisnum = 0;
        disstr = disflagstr = '';
        for(var x in disjson[tinfoid]){
            if(disjson[tinfoid][x]['status']==1){
                flagdisnum = 1;
                disstr += '<div class="discount_show_tab_content_item">\
			订单满<span>'+disjson[tinfoid][x]['num']+'</span>小时可享受 <span>'+x+'</span>折优惠\
		</div>';
            }
        }
        for(var x in disjson[tinfoid]){
            if(disjson[tinfoid][x]['status']==1 && hour>=disjson[tinfoid][x]['num'] && (x/10)<newSile){
                html = '<div class="mt15 order_grade" style="float:left;    margin-left: 140px;">您将享有<span>'+ x +'</span>折优惠</div>';
                newSile = x/10;
                break;
            }
        }


        if(flagdisnum==1){
            var disflagstr = '<div style="float:right;margin-top: 16px;" class="discount_show_tab">\
	<div class="discount_show_tab_title">折扣 <span class="discount_show_tab_arrow">&gt;</span></div>\
	<div class="discount_show_tab_content">\
		'+disstr+'\
	</div>\
</div>';

            html += disflagstr;
        }

        $.ajax({
            url :"https://y.tuwan.com/m/Coupon/lists?gameid="+dtid,
            type: "get",
            async:false,
            dataType:"jsonp",
            success:function(data){
                coupon = [];
                var couponstr = "";

                zongjia = accMul(price/100, hour);

                priceStr = accMul(zongjia, newSile);

                var maxmoney = 0;
                if(data.data){
                    for(var i = 0 ;i<data.data.length; i++){
                        if(priceStr>=data.data[i].usePrice && data.data[i].price>maxmoney && data.data[i].expire==0 && data.data[i].used==0){
                            maxmoney = data.data[i].price;
                            ucid = data.data[i].ucid;
                        }
                        if(priceStr>=data.data[i].usePrice && data.data[i].expire==0 && data.data[i].used==0){
                            coupon.push(data.data[i]);
                        }
                    }
                }


                var str = '';
                var str99 = '';

                if(coupon.length>0){
                    for(var i = 0 ;i<coupon.length; i++){
                        var checkedclass = coupon[i].ucid==ucid ? 'checkedclass' : '';
                        couponstr+='<div style="margin-top:10px;" class="isuse_coupon usecoupon usecoupon1 '+checkedclass+'" ucid='+coupon[i].ucid+' price="'+ coupon[i].price +'"><div><p style="margin:0"><span style="font-size:24px">￥</span><span style="font-size:24px">' + coupon[i].price + '</span><span style="margin-left:9px">' + coupon[i].desc +'</span></p><p>有效期至' + coupon[i].edate + '</p></div><div><p>[<span>优惠券</span>] [ <span>' +coupon[i].title+ '</span>]</p></div></div>';
                    }
                    str = '<div style="clear:both;"></div><div id="coupon_number" style="font-size:16px;float:left; width:260px;">优惠卷：<span style="color:#ff593e" id="pprice">-'+maxmoney+'</span>元</div><div class="coupon_show_tab"><div class="coupon_show_tab_title">优惠券<span id="font_rotate" style="display:inline-block;margin-left:5px;transform:scaleX(1.5) rotate(90deg);">></span></div><div class="coupon_show_tab_content"><p><label style="cursor:pointer;"><input type="checkbox" class="chk-nouse usecoupon1" couponlen="'+ coupon.length +'"><span couponlen="'+ coupon.length +'" class="usecoupon1" ucid="0" style="font-size:12px; color:#999; font-weight:300; margin-left:5px;">不使用优惠券</span></label></p>'+couponstr+'</div></div>';

                    str99 = '<div style="clear:both;"></div><div id="coupon_number99" style="font-size:16px;float:left; width:260px;">优惠卷：<span style="color:#ff593e" id="pprice99" price="'+ maxmoney +'">-'+maxmoney+'</span>元</div><div class="coupon_show_tab"><div class="coupon_show_tab_title">优惠券<span id="font_rotate99" style="display:inline-block;margin-left:5px;transform:scaleX(1.5) rotate(90deg);">></span></div><div class="coupon_show_tab_content"><p><label style="cursor:pointer;"><input type="checkbox" class="chk-nouse99 usecoupon1" couponlen="'+ coupon.length +'"><span couponlen="'+ coupon.length +'" class="usecoupon1" ucid="0" style="font-size:12px; color:#999; font-weight:300; margin-left:5px;">不使用优惠券</span></label></p>'+couponstr+'</div></div>';
                }

                //9.9元优惠券
                $(".youhuijuan99").html(str99)


                silePriceStr = accAdd(Subtr(zongjia, priceStr),maxmoney);
                silePriceStr = silePriceStr>zongjia ? zongjia : silePriceStr;

                html += str +'<div class="order_cost" style="clear:both;"><img src="picture/order_cost.png"><span>总价</span>：'+ zongjia +'元（单价：'+ parseInt(price/100) +'*'+ hour + paramJson[tinfoid].typeunit +'）</div>';


                html += '<div class="order_cost zhekou">折扣：'+ silePriceStr +'元</div>';

                html += '<div class="order_count">实付：<span id="listen_price">'+ Subtr(zongjia, silePriceStr) +'元</span></div>';

                $('.about_box1 .order_grade_box').html(html);

            }
        })

    };
    $(document).on("click",".usecoupon1",function(){
        ucid = $(this).attr('ucid');
        couponprice = ucid > 0 ? $(this).attr('price') : 0;
        if(!isPay99){
            silePriceStr = accAdd(Subtr(zongjia, priceStr),couponprice);
            silePriceStr = silePriceStr>zongjia ? zongjia : silePriceStr
            $('.zhekou').html('折扣：'+ silePriceStr +'元');
            $('#listen_price').html(Subtr(zongjia, silePriceStr));
            // $('#pprice').html("-"+couponprice);
            $('.usecoupon1').removeClass('checkedclass');
            var clen = $(this).attr("couponlen");
            if($(this).hasClass("chk-nouse")){
                $('#coupon_number').html("您目前有"+ clen +"张优惠卷");
            }
            else{
                $(this).addClass('checkedclass');
                if(clen){
                    $('#coupon_number').html("您目前有"+ clen +"张优惠卷");
                }
                else{
                    $('#coupon_number').html('优惠卷：<span style="color:#ff593e" id="pprice">-'+couponprice+'</span>元');

                    $("input.chk-nouse")[0].checked = false;
                }
            }
        }
        else{
            $('.usecoupon1').removeClass('checkedclass');
            var clen = $(this).attr("couponlen");
            if($(this).hasClass("chk-nouse99")){
                $('#coupon_number99').html("您目前有"+ clen +"张优惠卷");
            }
            else{
                $(this).addClass('checkedclass');
                if(clen){
                    $('#coupon_number99').html("您目前有"+ clen +"张优惠卷");
                }
                else{
                    $('#coupon_number99').html('优惠卷：<span style="color:#ff593e" price="'+ couponprice +'" id="pprice99">-'+couponprice+'</span>元');

                    $("input.chk-nouse99")[0].checked = false;
                }
            }



            var diff = couponprice>9.9 ? 9.9 : couponprice;
            $("#pprice99").html("-" + diff);
            listen99price(couponprice);
        }



        // $("input.chk-nouse")[0].checked = false;


    })
    function listen99price(juanprice){
        var price = 9.9-juanprice>0?(9.9-juanprice):0
        $("#real99").text(price)
    }
    function setParam() {
        $(".form_datetime").val('');
        $("#shijian").html('');
        $("#hour_").html(1);

        text_();
        gameIcon = paramJson[tinfoid].gameIcon;
        gameTitle = paramJson[tinfoid].gameTitle;
        sile = paramJson[tinfoid].sile;
        price = paramJson[tinfoid].price;
        timestatus = paramJson[tinfoid].timestatus;
        starttime = paramJson[tinfoid].timeStart;
        starttime2 = paramJson[tinfoid].timeStart2;
        datetimes = paramJson[tinfoid].timeEnd;
        datetimes1 = paramJson[tinfoid].timeEnds;
        typeflag = paramJson[tinfoid].typeflag;
    }
    function setDateData(that) {
        $('#index').val($('.table_time table td').index(that));
        ClickHour($('.table_time table td').index(that));
        var timenow = that.html().split(":");
        var timejs = (parseInt(timenow[0]) + 1) + ':' + timenow[1];
        if (timejs == '24:30') {
            timejs = '0:30';
        }
        $('#shijian1').val(that.html());
        $('#shijian2').val(that.html() + '-' + timejs);
        if(typeflag == 1) $('#shijian').html(that.html() + '-' + timejs);
        else $('#shijian').html(that.html()+'开始');
        $('#hour_').html(1);
        $('.bootstrap-touchspin-up').attr('disabled',false);
        that.parents().find(".table_time td").removeClass("td_add")
        that.addClass("td_add").siblings().removeClass("td_add")
        $('.table_time').hide();
        text_();
    }
    function setHours() {
        //获得文本框对象
        var t = $("#hour_");
        //初始化数量为1,并失效减
        if(parseInt(t.html())==1){
            $('.bootstrap-touchspin-down').attr('disabled',true);
        }
        //数量增加操作
        var maxVal = 24;
        $(document).on('click','.bootstrap-touchspin-up',function(){
            if($('.form_datetime').val() == '' || $('#shijian').html() == ''){
                return false;
            }
            var timeout = $('#shijian').html();
            var tableArr = [];
            $('.table_time td').each(function(){
                if($(this).html() > timeout && $(this).attr('class') !== 'no_td_add'){
                    tableArr.push($(this).html());
                }
            })

            var maxVal = position;
            // if(timestatus == 0){
            if(maxVal <= 1){
                $('.bootstrap-touchspin-up').attr('disabled',true);
                return false;
            }
            // }

            maxVal = maxVal == 0 ? 24 : maxVal;
            if (parseInt(t.html())>=maxVal){
                $('.bootstrap-touchspin-up').attr('disabled',true);
                return;
            }

            t.html(parseInt(t.html())+1)
            if (parseInt(t.html())!=3){
                $('.bootstrap-touchspin-down').attr('disabled',false);
            }

            var nowstime = $('#shijian').html().split("-");
            var nowsjes = nowstime[0].split(':');
            var endtimesmax = parseInt(nowsjes) + parseInt(t.html());
            if(endtimesmax >= 24){
                endtimesmax = endtimesmax - 24;
            }
            if(typeflag == 1) $('#shijian').html(nowstime[0] + '-' + endtimesmax+':'+nowsjes[1])
            else $('#shijian').html(nowstime[0])
            text_();
        })
        //数量减少操作
        $(document).on('click','.bootstrap-touchspin-down',function(){
            if (parseInt(t.html())==1){
                $('.bootstrap-touchspin-down').attr('disabled',true);
                return false;
            }
            t.html(parseInt(t.html())-1);
            if (parseInt(t.html())==1){
                $('.bootstrap-touchspin-down').attr('disabled',true);
            }
            if (parseInt(t.html())!=maxVal){
                $('.bootstrap-touchspin-up').attr('disabled',false);
            }
            if(typeflag == 1)  var nowstime = $('#shijian').html().split("-");
            else var nowstime = $('#shijian2').val().split("-");

            var nowsjes = nowstime[1].split(':');
            var endtimesmax = parseInt(nowsjes) - 1;
            if(endtimesmax < 0){
                endtimesmax = 23;
            }
            if(typeflag == 1) $('#shijian').html(nowstime[0] + '-' + endtimesmax+':'+nowsjes[1])
            else $('#shijian').html(nowstime[0]+'开始')
            text_();
        })
    }
    function current(flag){
        var d=new Date(),str='';
        if(flag == 1){
            str +=d.getFullYear()+'-'; //获取当前年份
            str +=d.getMonth()+1+'-'; //获取当前月份（0——11）
            str +=d.getDate();
        }else{
            str +=d.getFullYear()+'年'; //获取当前年份
            str +=d.getMonth()+1+'月'; //获取当前月份（0——11）
            str +=d.getDate()+'日 ';
            str +=d.getHours()+':';
            if(d.getMinutes() < 10) str +='0'+d.getMinutes();
            else str +=d.getMinutes();

            // str +=d.getSeconds();
        }
        return str;
    }
    var setIntervals = '';
    function timer(intDiff){
        intDiff = parseInt(intDiff);
        clearInterval(setIntervals);
        setIntervals = window.setInterval(function(){

            var day=0,

                hour=0,

                minute=0,

                second=0;//时间默认值

            if(intDiff > 0){

                day = Math.floor(intDiff / (60 * 60 * 24));

                hour = Math.floor(intDiff / (60 * 60)) - (day * 24);

                minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);

                second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);

            }

            if (minute <= 9) minute = '0' + minute;

            if (second <= 9) second = '0' + second;

            $('#minute_show').html(minute+'分');

            $('#second_show').html(second+'秒');

            intDiff--;

        }, 1000);

    }
    function payComfirm() {
        $('.paytitle').html('支付提示');
        $('.paycontent').html('请您在新打开的第三方支付页面上完成支付');

        var html = '<div class="fl pay_for_fail">支付失败</div>';
        var tempStr = successUrl +'';
        if (tempStr.indexOf("https:") >= 0) {
            html += '<a href="'+ successUrl +'" target="_blank"><div class="fl pay_for_success">支付完成</div></a>';
        } else {
            html += '<div class="fl pay_for_success">支付完成</div>';
        }

        html += '<div class="clearfix"></div>';
        $('.paysuccess').html(html);

        $('.pay_for_success').click(function() {
            initDisplay();
            if (successUrl == 0) {

            } else if (successUrl == 1) {

            } else if (successUrl == 2) {
                giftCallback();
            } else if (successUrl == 3) {
                loadTeacherWx();
            } else {
                //location.href = successUrl;
            }

        });
        $('.pay_for_fail').click(function() {
            initDisplay();
        });

    }
    function AddRecord(IdName){
        var id = tinfoid;
        var yesmoney = 0;
        if(IdName == 'tuwanpay'){
            yesmoney = 1;
        }
        if(packageid <= 0){//表示没有走套餐大礼包
            if(money == 0){
                $('.money1').css({"margin-top":"2px"});
            }
            var DateTime = $('.form_datetime').val();
            if(DateTime == ''){
                $('.form_datetime').css('border','1px solid red')
                return false;
            }
            $('.form_datetime').css('border','1px solid #ccc')
            if($('.border-qq').attr("flag") == 1){
                var borderQq = $('.border-qq1').val();
                if(borderQq == ''){
                    $('.border-qq1').css('border','1px solid red')
                    return false;
                }
                var qqyanzheng = '^\d{6,10}$';
                if(!borderQq.match('^[0-9]{6,10}$')){
                    $('.border-qq1').css('border','1px solid red')
                    alert('QQ格式不正确！');
                    return false;
                }
                $('.border-qq1').css('border','1px solid #ccc')
                turl = '&qq=' + borderQq + '&flag=1';
            }else{
                turl = '&flag=0';
            }
            var shijian = $.trim($('#shijian').html());
            if(shijian == ''){
                $('#shijian').css('border','1px solid red')
                return false;
            }
            $('#shijian').css('border','1px solid #ccc')
        }else{
            if($('.border-qq').attr("flag") == 1){
                var borderQq = $('.border-qq2').val();
                if(borderQq == ''){
                    $('.border-qq2').css('border','1px solid red')
                    return false;
                }
                var qqyanzheng = '^\d{6,10}$';
                if(!borderQq.match('^[0-9]{6,10}$')){
                    $('.border-qq2').css('border','1px solid red')
                    alert('QQ格式不正确！');
                    return false;
                }
                $('.border-qq2').css('border','1px solid #ccc')
                turl = '&qq=' + borderQq + '&flag=1';
            }else{
                turl = '&flag=0';
            }
            DateTime = current(1);
        }

        var HoursTime = $('#hour_').html();
        var content = $('.order_textarea').val();
        var shijian = $('#shijian1').val();
        $.ajax({
            url: "https://api.tuwan.com/playteach/?type=play&data=addrecord&format=jsonp&id=" + id + "&ucid=" + ucid + "&DateTime=" + DateTime + "&shijian=" + shijian + "&HoursTime=" +HoursTime + "&content="+content + "&money="+yesmoney+turl+'&packageid='+packageid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){

                if(obj.code == 1 && obj.status == 1){
                    var arrtime = DateTime.split("-");
                    var endtimeas = parseInt((shijian.split(":")[0])) + parseInt(HoursTime);
                    if(endtimeas >= 24){
                        if(shijian.indexOf("30") > 0){
                            endstatus = ':30';
                        }else{
                            endstatus = ':00';
                        }
                        endtimeas = endtimeas1 = parseInt(endtimeas) - 24;
                        endtimeas = Date.parse(new Date(DateTime));
                        endtimeas = '次日';
                        endtimeas = endtimeas + ' ' + endtimeas1;
                    }else{
                        endtimeas = endtimeas;
                        if(shijian.indexOf("30") > 0){
                            endstatus = ':30';
                        }else{
                            endstatus = ':00';
                        }
                    }

                    $('.paytitle').html('购买提示');
                    if(packageid == 1001){
                        $('.paycontent').html('<span style="font-size:  18px;font-weight:  bold; display: inline-block; padding-bottom: 10px; color: #ff593e;">购买成功</span><br />您已购买' + paramJson[tinfoid].gameTitle + '---点点约玩<br />（约玩时间：' + arrtime[0] + '年' + arrtime[1] + '月' + arrtime[2] + '日  ' + shijian + '开始）');
                    }else{
                        $('.paycontent').html('<span style="font-size:  18px;font-weight:  bold; display: inline-block; padding-bottom: 10px; color: #ff593e;">购买成功</span><br />您已购买' + paramJson[tinfoid].gameTitle + '---点点约玩<br />（约玩时间：' + arrtime[0] + '年' + arrtime[1] + '月' + arrtime[2] + '日  ' + shijian + '-' + endtimeas + endstatus + '）');
                    }
                    $('.paysuccess').html('<a href="https://y.tuwan.com/home/ocenter/?type=2" target="_blank"><span class="btn-cell btn-red">进入订单中心</span></a>');
                    alipay = 'https://pay.tuwan.com/?type=alipay&aid=' + obj.trade_no + '&typeid=2000';
                    wechat = 'https://t.tuwan.com/play/wechat/' + obj.trade_no + '/';
                    $('#orderPayUrl').attr("href",alipay);
                    $('.table_time table td').each(function(){
                        $(this).removeClass();
                        $(this).removeClass();
                        $(this).unbind("click"); //移除click
                    })
                    qqFlag = 0;

                    $(".pop_up_bigbox").show();
                    $(".pay_fail").show();
                    $(".about_box1").hide();
                    $(".about_box2").hide();
                }else if (obj.code == 1){
                    var trade_no = obj.trade_no;
                    successUrl = 'https://y.tuwan.com/home/ocenter/?type=2';
                    //payComfirm();
                    //$(".alipay_time").html();
                    // alipay = 'https://pay.tuwan.com/?type=alipay&aid=' + obj.trade_no + '&typeid=2000';
                    //     		wechat = 'https://t.tuwan.com/play/wechat/' + obj.trade_no + '/';

                    // $('#orderPayUrl').attr("href", alipay);

                    //     		$('.table_time table td').each(function(){
                    // 	$(this).removeClass();
                    // 	$(this).removeClass();
                    // 	$(this).unbind("click"); //移除click
                    // })

                    //修改金额
                    if (packageid == 1001) {
                        $(".order_payfor .alipay_time").html("9.9元 * 1局");
                    } else {
                        var newSile = 1;
                        if (vipSile != 1 || sile != 1) {
                            if (vipSile > sile) {
                                newSile = sile;
                            } else {
                                newSile = vipSile;
                            }
                        }
                        var moneys = accMul(price/100, newSile);
                        ////////////////////
                        shifuMoney = moneys*HoursTime - zhekouMoney;
                        $(".order_payfor .alipay_time").html(moneys + "元 * "+ HoursTime + paramJson[tinfoid].typeunit + " 折扣：" + zhekouMoney + "元 实付：" + shifuMoney + "元");
                    }

                    $(".about_box1").hide();
                    $(".about_box2").hide();
                    $(".order_payfor").show();
                    timer(599);
                    $('#minute_show').html('09分');
                    $('#second_show').html('59秒');
                    //get_play_ajax(DateTime);
                    //显示二维码
                    showPayEWM(trade_no);

                }else if(obj.code == -1002){
                    alert('所选时间已被预约');
                }else if(obj.code == -500){
                    alert('超出导师服务时间');
                }else if(obj.code == -6){
                    alert('对不起，您不能给自己下单');
                }else if(obj.code == -300){
                    alert('请选择正确的时间');
                }else if(obj.code == -2){
                    $('.paytitle').html('购买提示');
                    $('.paycontent').html('您的余额不足，请先充值');
                    $('.paysuccess').html('<a href="https://t.tuwan.com/play/recharge/" target="_blank"><span class="btn-cell btn-red" >进入充值页面</span></a>');
                    $('.table_time table td').each(function(){
                        $(this).removeClass();
                        $(this).removeClass();
                        $(this).unbind("click"); //移除click
                    })
                    $(".pop_up_bigbox").show();
                    $(".pay_fail").show();
                    $(".about_box1").hide();
                    $(".about_box2").hide();
                }else if(obj.code == -1009){
                    alert('数据有误');
                }else if(obj.code == -2001){
                    alert('您未完成订单次数已超过5次，今日无法再次下单。');
                }else if(obj.code == -2002){
                    alert('您的余额不足（部分账户余额已冻结）');
                }else if(obj.code == -1){
                    alert('下单失败');
                }else if(obj.code == -10009){
                    alert('请先登陆');
                    $('#index_pup_box').show();
                }else if(obj.code == -20006){
                    alert('导师已经离线');
                }else if(obj.code == -1054){
                    alert('您的9.9元体验单已结束，如需陪玩请以原价下单。');
                }
            }
        })
    }
    function showPayEWM(ordercode){
        var url = "https://u.tuwan.com/Pay/qrcode?typeid=2000&money=" + ordercode;
        $.ajax({
            url:url,
            type: "get",
            dataType: "jsonp",
            success: function (response){
                if(response){
                    var error = response.error;
                    if(error == 0){
                        var qrcode = response["qrcode"];
                        $("#imgPayEWM").attr("src", qrcode);

                        listenPay(ordercode);
                    }
                }
            }
        })
    }
    //监听微信支付结果
    var listenWXInterval = 0
    function listenPay(orderid){
        //监听微信支付结果
        listenWXInterval = setInterval(function(){
            $.ajax({
                type: "get",
                url: "https://y.tuwan.com/m/Diamond/checkOrder?format=jsonp&tradeno="+ orderid,
                dataType: "jsonp",
                success: function (data) {
                    if(data&&data.error ==0){
                        var state = data.state;
                        if(state == 2){
                            clearInterval(listenWXInterval);
                            location.href="https://y.tuwan.com/home/ocenter/"
                        }
                    }
                    else{


                    }
                }
            })
        },2000)
    }
    function initDisplay() {
        $(".pop_up_box").hide();
        $(".pop_up_bigbox").hide();
        $(".pop_for_box").hide();
        $(".no_money_box").hide();
        $(".pay_select_box").hide();
        $(".payment_box").hide();
        $(".express_popup_box").hide();
        $(".express_popup_box").hide();
        $(".order_payfor").hide();
        $(".pay_fail").hide();
        $(".about_box").hide();
    }
    function accMul(arg1,arg2) {
        var m=0,s1=arg1.toString(),s2=arg2.toString();
        try{m+=s1.split(".")[1].length}catch(e){}
        try{m+=s2.split(".")[1].length}catch(e){}
        var argtotal = Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
        argtotal = '' + argtotal;
        if(argtotal.indexOf('.') > 0){
            argtotal = argtotal.substring(0,argtotal.indexOf(".") + 3);
        }
        return argtotal;
    }
    //时间格式
    function getLocalTime(nS,getstatus) {
        if(getstatus == ''){
            return formatDateTime(new Date(parseInt(nS) * 1000), getstatus);
        }else{
            return formatDateTime(new Date(parseInt(nS)),1);
        }
    }
    var formatDateTime = function (date,getflag) {
        var y = date.getFullYear();
        var m = date.getMonth() + 1;
        m = m < 10 ? ('0' + m) : m;
        var d = date.getDate();
        d = d < 10 ? ('0' + d) : d;
        var h = date.getHours();
        var minute = date.getMinutes();
        minute = minute < 10 ? ('0' + minute) : minute;
        if(getflag == ''){
            return  y + '-' +m + '-' + d+' ' + h + ':' + minute;
        }else{
            return  y + '-' + m +'-' + d;
        }
    };
    //获取导师微信
    function loadTeacherWx() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/wxView/teacherid/"+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == 1) {
                    $(".wechat_box_ed").hide();
                    $(".wechat_box").hide();
                } else {
                    if (obj.wx == '') {
                        $('.wechat_box').show();
                        $('.wechat_box_ed').hide();
                    } else {
                        $('.wechat_box').hide();
                        $('.wechat_box_ed').show();
                        $('.wechat_box_ed span').html(obj.wx);
                    }
                }
            }
        });
    }
    //检查附加属性
    var giftuserid = 0;
    function checkConfession() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/checkConfession/teacherid/"+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    isAlertBiaoBai = false;
                    giftuserid = obj.id;
                    $(".pop_up_box").show();
                    $(".express_popup_box1").show();
                    $(".form_datetime2").datetimepicker({
                        language: 'zh-CN',
                        startView: 2,
                        minView: 2,
                        autoclose:true,
                        startDate: obj.startDate,
                        endDate: obj.endDate,
                        format:"yyyy-mm-dd"
                    });
                }
            }
        });
    }
    /*表白标签*/
    function setConfession() {
        var content = $.trim($(".express_popup_box1 .content_text").val());
        if (content == '') {
            alert("请输入表白内容");
            return;
        }
        var time = $.trim($(".express_popup_box1 .form_datetime2").val());
        if (time == '') {
            alert("请选择表白时间");
            return;
        }

        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/setConfession/teacherid/"+ teacherid +"?id="+ giftuserid +"&time="+ encodeURIComponent(time) +"&content="+ encodeURIComponent(content) +"&tname="+ teacherName,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    $(".pop_up_box").hide();
                    $(".express_popup_box1").hide();
                    $(".express_popup_box1 .form_datetime2").val('');
                    $(".express_popup_box1 .content_text").val('');
                    alert("表白成功");
                } else if(obj.error == -3) {
                    alert("表白失败，内容非法");
                }
            }
        });
    }
    function cancelConfession() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/cancelConfession/teacherid/"+ teacherid +"?id="+ giftuserid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    $(".pop_up_box").hide();
                    $(".express_popup_box1").hide();
                }
            }
        });
    }
    var giftuserid2 = 0;
    function checkNaming() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/checkNaming/teacherid/"+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    giftuserid2 = obj.id;
                    $(".pop_up_box").show();
                    $(".express_popup_box2").show();

                    $(".form_datetime3").datetimepicker({
                        language: 'zh-CN',
                        startView: 2,
                        minView: 2,
                        autoclose:true,
                        startDate: obj.startDate,
                        endDate: obj.endDate,
                        format:"yyyy-mm-dd"
                    });
                }
            }
        });
    }
    function setNaming() {
        var content = $.trim($(".express_popup_box2 .content_input").val());
        if (content == '') {
            alert("请输入冠名内容");
            return;
        }
        if (content.length > 4) {
            alert("冠名内容限4个字");
            return;
        }
        var time = $.trim($(".express_popup_box2 .form_datetime3").val());
        if (time == '') {
            alert("请选择冠名时间");
            return;
        }

        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/setNaming/teacherid/"+ teacherid +"?id="+ giftuserid2 +"&time="+ encodeURIComponent(time) +"&content="+ encodeURIComponent(content) +"&tname="+ teacherName,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    $(".pop_up_box").hide();
                    $(".express_popup_box2").hide();
                    $(".express_popup_box2 .content_input").val('');
                    $(".express_popup_box2 .form_datetime3").val('');
                    alert("冠名成功");
                } else if(obj.error == -3) {
                    alert("冠名失败，内容非法");
                }
            }
        });
    }
    function cancelNaming() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/cancelNaming/teacherid/"+ teacherid +"?id="+ giftuserid2,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    $(".pop_up_box").hide();
                    $(".express_popup_box2").hide();
                }
            }
        });
    }
    function keypress2() //textarea输入长度处理
    {
        var text1 = $(".express_popup_box1 .content_text").val();
        var len; //记录剩余字符串的长度
        if (text1.length >= 40) //textarea控件不能用maxlength属性，就通过这样显示输入字符数了
        {
            $(".express_popup_box1 .content_text").val(text1.substr(0, 40));
            len = 0;
        } else {
            len = text1.length;
        }

        $(".express_popup_box1 .content_text_wran").html(len+"/40");
    }
    var attention = 0;
    function checkAttention() {
        $.ajax({
            url: "https://y.tuwan.com/m/Attention/check?teacherid="+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if(obj.error == 0) {
                    $(".top_follow_ed").show();
                    $(".top_follow").hide();
                    $(".top_follow_no").hide();
                } else {
                    $(".top_follow").show();
                    $(".top_follow_ed").hide();
                    $(".top_follow_no").hide();
                }
            }
        });
    }
    function setAttention() {
        $.ajax({
            url: "https://y.tuwan.com/m/Attention/add?teacherid="+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    $(".top_follow_ed").show();
                    $(".top_follow").hide();
                    $(".top_follow_no").hide();
                    aCancel = 0;
                }
            }
        });
    }
    var aCancel = 0;
    function cancelAttention() {
        $.ajax({
            url: "https://y.tuwan.com/m/Attention/cencel?teacherid="+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {

                } else if(obj.error == 0) {
                    aCancel = 1;
                    $(".top_follow_ed").hide();
                    $(".top_follow").show();
                    $(".top_follow_no").hide();
                }
            }
        });
    }
    /**
     * 是否传QQ
     */
    function setQqDisplay() {
        $('.border-qq').css('border','0px');
        if(qqFlag == 0){ //qq存在
            $('.border-qq').parent().hide();
            $('.border-qq').attr("flag",'0');
        }else{
            $('.border-qq').parent().show();
            $('.border-qq').attr("flag",'1');
        }
    }
    /**
     * 加载用户拥有的礼物
     */
    function setHaveGift() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/haveGift",
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                if (obj.error == -1) {
                    // $('#index_pup_box').show();
                } else if(obj.error == 0) {
                    var str = '';
                    var len = obj.data.length;
                    if (len > 0) {
                        $("#bredpoint1").show();
                        $("#bredpoint2").show();
                        ///////////////
                        for (var i=0; i<len; i++) {
                            var textWidth = 'style="width:150px;"';
                            var charmScoreStr = '<div>不参与分成和不增加魅力值</div>';
                            if (obj.data[i].worth == 1) {
                                charmScoreStr = '<div>导师参与分成和增加魅力值</div>';
                            }

                            str += '<div class="content_left_gift_02 fl content_left_gift_type2" style="color:#333;" gid="'+ obj.data[i].id +'" worth="'+ obj.data[i].worth +'">\
        				<div class="gift_pirce_box">\
        					<div class="gift_pirce"><img src="picture/gift_pirce.png"></div>\
        					<div class="gift_pirce_text" '+ textWidth +'>价格：免费'+ charmScoreStr +'<div class="gift_btntop_end">'+ obj.data[i].intro +'</div>\
        				</div>\
        			</div>\
        			<div class="gift_01_img_height" style="position: relative;"><img style="width:65px;height:65px;" src="'+ obj.data[i].pic +'"><div class="gift_code">X '+ obj.data[i].num +'</div></div>'+ obj.data[i].title +'</div>';
                        }
                    }
                    else{
                        $("#bredpoint1").hide();
                        $("#bredpoint2").hide();
                    }
                    $(".content_left_giftlist04").html(str);

                    $(".content_left_gift_type2").on("click",function(){
                        $(".content_left_gift_02").removeClass("content_left_gift_02_add");
                        $(this).addClass("content_left_gift_02_add");
                        // $(".content_left_gift_blackbg_all").hide();
                        giftType = 1;
                        giftId = $(this).attr('gid');
                        worth = $(this).attr('worth');
                        $(".giftTitle").html(giftJson[giftId].title);
                        flag=1;
                    })
                    $(".content_left_gift_02").on("mouseover",function(){
                        $(".gift_pirce_box").hide();
                        $(this).find(".gift_pirce_box").show();
                    })
                    $(".content_left_gift_02").on("mouseleave",function(){
                        $(".gift_pirce_box").hide();
                    })
                }
            }
        });
    }
    /**
     * 加载专属礼物名单
     */
    function setOrderGift(){
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/gift?type=3",
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                var str = '';
                var len = obj.gift.length;
                if (len > 0) {
                    $("#bredpoint1").show();
                    $("#bredpoint2").show();
                    ///////////////
                    for (var i=0; i<len; i++) {
                        str += '<div class="content_left_gift_02 sp_content sp_tips_box fl content_left_gift_type3" style="color:#333;position:relative" guname ="'+obj.gift[i].uname+'" gtname="'+obj.gift[i].tname+'" gid="'+ obj.gift[i].id +'" worth="'+ obj.gift[i].diamond +'">\
        			<div class="gift_01_img_height" style="position: relative;"><img style="width:65px;height:65px;" src="'+ obj.gift[i].pic +'"></div><p style="margin-top:5px">'+ obj.gift[i].title +'</p></div>';
                        giftJson[obj.gift[i].id] = obj.gift[i];
                    }
                    // console.log(str)
                    $(".content_left_giftlist05").html(str);

                    $(".content_left_gift_type3").on("click",function(){
                        $(".content_left_gift_02").removeClass("content_left_gift_02_add");
                        $(this).addClass("content_left_gift_02_add");
                        // $(".content_left_gift_blackbg_all").hide();
                        giftType = 0;
                        giftId = $(this).attr('gid');
                        worth = $(this).attr('worth');
                        $(".giftTitle").html(giftJson[giftId].title);
                        flag=1;
                    })
                    $(".content_left_gift_type3").on("mouseover",function(){
                        $(".gift_pirce_box").hide();
                        $(this).find(".gift_pirce_box").show();
                    })
                    $(".content_left_gift_type3").on("mouseleave",function(){
                        $(".gift_pirce_box").hide();
                    })
                    $(".sp_tips_box").on("mouseover",function(){
                        $(".gift_pirce_box").hide();
                        $(".tips_box").show();
                        worth = $(this).attr('worth');
                        guname = $(this).attr('guname');
                        gtname = $(this).attr('gtname');
                        if(gtname==""){
                            $html='价格：'+worth+'钻<div class="gift_btntop_end">定制人:'+ guname +'</div>'
                        }else{
                            $html='价格：'+worth+'钻<div class="gift_btntop_end">专属导师:'+ gtname +'</div><div class="gift_btntop_end">定制人:'+ guname +'</div>'
                        }
                        $('.tips_gift_pirce_text').html($html)
                        var left = $(this).offset().left-10
                        var top = $(this).offset().top-20
                        $('.tips_box').css("top",top)
                        $('.tips_box').css("left",left)
                        // console.log($(this).offset())
                        // $(this).find(".gift_pirce_box").show();
                    })
                    $(".sp_tips_box").on("mouseleave",function(){
                        $(".tips_box").hide();
                    })
                }
            }
        });
    }
    function setUserGiftData(index, name, subname, avatar, num, percent) {
        var top = '';
        var bottom = '';
        if (index == 0) {
            top = '<img src="picture/one_top.png" class="one_top_img">';
            bottom = '<img src="picture/one_bottom.png" class="one_bottom_img">';
        } else if(index == 1) {
            top = '<img src="picture/two_top.png" class="one_top_img">';
            bottom = '<img src="picture/two_bottom.png" class="one_bottom_img">';
        } else if(index == 2) {
            top = '<img src="picture/three_top.png" class="one_top_img">';
            bottom = '<img src="picture/three_bottom.png" class="one_bottom_img">';
        } else if(index == 3) {
            bottom = '<img src="picture/five_bottom.png" class="one_bottom_img">';
        } else if(index == 4) {
            bottom = '<img src="picture/four_bottom.png" class="one_bottom_img">';
        }

        var userStr = '<div class="fl ranking_box">\
 	<div class="fl mt20">\
 		<div class="one_top_img_box">'+ top +'<div class="test_head" class="one_bottom_img"><img src="'+ avatar +'" onerror="imgNoFound(this)" title="'+ name +'"></div>'+ bottom +'</div>\
 		<div class="one_bottom_text">'+ subname +'</div>\
 	</div>\
 	<div class="fl mt30 ml15">\
 		<div class="value_bottom_bg_text">贡献值</div>\
 		<div class="value_bottom_bg_box">\
 			<div class="value_bottom_top" style="width:'+ percent +'%"></div>\
 			<div class="value_bottom_bg"></div>\
 		</div>\
 		<div class="value_bottom_bg_text_top">'+ num +'</div>\
 	</div>\
 	<div class="clearfix"></div>\
 </div>';

        return userStr;
    }
    //加载用户礼物
    function loadUserGift() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/giftUser/teacherid/"+ teacherid,
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                var giftList = obj.gift;
                var userList = obj.user;

                var giftLen = giftList.length;
                var userLen = userList.length;

                //礼物列表
                var giftStr = '';
                var charmScoreStr = '';
                for (var i=0; i<giftLen; i++) {
                    charmScoreStr = '';
                    if (giftList[i].charm_score) {
                        charmScoreStr = '<div>导师获赠'+ giftList[i].charm_score +'魅力值</div>';
                    }
                    giftStr += '<div class="fl gift_bottom_img_height_box" style="color: #333;" gid="'+ giftList[i].id +'" id="gift_'+ giftList[i].id +'">\
        		<div class="gift_bottom_img_height"><img style="height:65px" src="'+ giftList[i].pic +'"></div>\
        		<div class="gift_bottom_img_text">'+ giftList[i].num +'</div>\
        		<div class="gift_btntop">\
        			<div class="gift_btntop_img"><img src="picture/gift_btntop.png"></div>\
        			<div class="gift_btntop_text_box">\
        				<div class="gift_btntop_text_type">'+ giftList[i].title +'</div>\
        				<div>价格：'+ giftList[i].diamond +' 钻石</div>'+ charmScoreStr +'<div class="gift_btntop_end">'+ giftList[i].intro +'</div>\
        			</div>\
        		</div>\
        	</div>';
                }
                if (giftStr == '') {
                    giftStr = '<div class="fl no_top"><img src="picture/no_bottom.png">&nbsp;&nbsp;喜欢我就给我送礼物吧~</div>';
                }
                $(".gift_bottom_img_height_box_svbbox").html(giftStr);

                //守护榜列表
                var userStr = '';
                var top = '';
                var bottom = '';
                for (var i=0; i<userLen; i++) {
                    userStr += setUserGiftData(i, userList[i].username, userList[i].subname, userList[i].avatar, userList[i].totalScore, userList[i].percent);
                }
                if (userStr == '') {
                    userStr = '<div class="fl no_top"><img src="picture/no_top.png">&nbsp;&nbsp;主播暂无人守护，快开启对ta的守护吧~</div>';
                } else if(userLen != 5) {
                    var limit = 5 - userLen;
                    var index = 0;
                    for(i=0; i<limit; i++) {
                        index = userLen+i;
                        userStr += setUserGiftData(index, '虚位以待', '虚位以待', 'https://res.tuwan.com/templet/play/teacher/images/none.png', 0, 0);
                    }
                }

                $(".gift_top_box_user").html(userStr);

                // 右边礼物增加切换
                $(".gift_bottom_img_height_box_svbbox").css("width",$(".gift_bottom_img_height_box").length*392);
                var n=0,
                    m=$(".gift_bottom_img_height_box").length;
                $(".move_left_btn").click(function(){
                    if (n < 0) {
                        ++n;
                        $(".gift_bottom_img_height_box_svbbox").animate({marginLeft:76*n},300);
                    }
                })
                $(".move_right_btn").click(function(){
                    if (m+n > 8) {
                        --n;
                        $(".gift_bottom_img_height_box_svbbox").animate({marginLeft:76*n},300);
                    }
                })

                // 右边隐藏礼物鼠标点击效果
                $(".gift_bottom_img_height_box").on("mouseover",function(){
                    $(".gift_btntop").hide();
                    $(this).find(".gift_btntop").show();
                })
                $(".gift_bottom_img_height_box").on("mouseleave",function(){
                    $(".gift_btntop").hide();
                })

                //点礼物时弹出选择框
                $(".gift_bottom_img_height_box").click(function() {
                    if (uid == 0) { //未登录
                        $('#index_pup_box').show();
                        return;
                    }

                    giftNum = 1;
                    giftId2 = $(this).attr('gid');
                    var price = accMul(giftNum, giftJson[giftId2].diamond);

                    $('.pop_for_box .pop_up_gift img').attr('src', giftJson[giftId2].pic);
                    $('.pop_for_box .play_coins span').html(price +'钻石');
                    $('.pop_for_box .play_coins_name').html('<span>送</span>“'+ giftJson[giftId2].title +'”<span>给</span>  '+ teacherName);
                    $('.pop_for_box .play_coins_text').html(giftJson[giftId2].desc);
                    $('.pop_for_box .add_left_box .add_text').html(giftNum);

                    $('.pop_for_box').show();
                    $('.pop_up_box').show();
                });
            }
        });
    }
    //获取滚动消息
    function loadGiftScroll() {
        $.ajax({
            url: "https://y.tuwan.com/m/Teacher/giftScroll",
            type: "get",
            dataType: "jsonp",
            success: function (obj){
                var data = obj.data;
                var len = data.length;

                var html = '';
                for (var i=0; i<len; i++) {
                    var user_nickname=''
                    user_nickname=nameFormat(data[i].teachername,15,-3)
                    html += '<div class="top_center_subbox">'+
                        '<div class="fl mt10">'+
                        '<div class="top_center_text fl"><span>'+ data[i].studentname +'</span> 送给 <a href="https://y.tuwan.com/play/'+ data[i].teacherid +'" target="_blank"><span>'+ user_nickname +'</span></a> '+ data[i].num +'个'+ data[i].title +'</div>'+
                        '</div>'+
                        '<img src="'+ data[i].pic +'" class="fl center_img">'+
                        '<div class="clearfix"></div>'+
                        '</div>';
                }

                $("#scrollBlock").html(html);
            }
        });
    }



    /**>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
     * 获取导师信用值*/
    function loadCharm() {
        $.ajax({
            url: "/hello"+ teacherid,
            type: "post",
            dataType: "json",
            data: {
                "userName": $("#username").val(),
                "age":$("#userage").val()
            },
            success: function (obj){
                var html = '';
                if (obj.error == 0) {
                    html += '<div><a href="https://y.tuwan.com/mygrade/" target="_blank"><img src="/picture/5ab6608ce2e8431d94f91d76866e190f.gif'+ obj.data.level +'.png?t=201804111508"></a></div>';
                }
                $(".top_usercp_jibie").html(html);
            }
        });
    }




    $(function(){
        // 上方滚动
        function startShow(firstDom){
            $(".top_center_box").animate({"margin-top":-34},1000,function(){
                firstDom.clone().appendTo(".top_center_box").css("opacity",1);
                firstDom.remove();
                $(".top_center_subbox:first").insertAfter($(".image_head_subbox:last"));
                $(".top_center_box").css({"margin-top":0});
            })
        }
        function fadeAnimate(){
            $(".top_center_box > .top_center_subbox:first").animate({opacity:0},1000,function(){
                startShow($(this));
            })
        }
        setInterval(fadeAnimate,4000);
        // 图片放大
        $(".content_left_top_sub_img").on("mouseover",function(){
            var n=$(".content_left_top_sub_img").index(this);
            $(".content_left_top_big_img").hide();
            $(".content_left_top_big_img").eq(n).show();
            $(".content_left_top_sub_img").removeClass("content_left_top_sub_img_add");
            $(".content_left_top_sub_img").eq(n).addClass("content_left_top_sub_img_add");

        })
        $(".content_left_top_sub_img_box").css("width",$(".content_left_top_sub_img").length*392);
        var n=0,
            m=$(".content_left_top_sub_img").length;
        $(".right_btn").click(function(){
            if(n<m-4){
                n=n+1;
            }else{
                $(".content_left_top_sub_img_box").css({marginLeft:0});
                n=1;
            }
            $(".content_left_top_sub_img_box").animate({marginLeft:-100*n},300);
        })
        $(".left_btn").click(function(){
            if(n>0){
                n=n-1;
            }else{
                $(".content_left_top_sub_img_box").css({marginLeft:0});
                n=m-4;
            }
            $(".content_left_top_sub_img_box").animate({marginLeft:-100*n},300);
        })
        //图片经过显示文字
        $(".content_left_top_big_img").on("mouseover",function(){
            $(".content_left_magnifier_box").hide();
            $(this).find(".content_left_magnifier_box").show();
            $(".content_left_bigplay").show();
        })
        $(".content_left_top_big_img").on("mouseleave",function(){
            $(".content_left_magnifier_box").hide();
            $(".content_left_bigplay").hide();
        })
        $(".content_left_bttom_tab").on("click",function(){
            var n=$(".content_left_bttom_tab").index(this)
            $(".content_left_bttom_content").hide();
            $(".content_left_bttom_content").eq(n).show();
            $(".content_left_bttom_tab").removeClass("content_left_bttom_tab_add");
            $(".content_left_bttom_tab").eq(n).addClass("content_left_bttom_tab_add");

        })
        $(".content_center_right_nav").on("click",function(){
            var n=$(".content_center_right_nav").index(this)
            $(".content_center_right_content").hide();
            $(".content_center_right_content").eq(n).show();
            $(".content_center_right_nav").removeClass("content_center_right_nav_add");
            $(".content_center_right_nav").eq(n).addClass("content_center_right_nav_add");

            tinfoid = $(this).attr('tinfoid');
            dtid = $(this).attr('dtid');
            currentPage = 1;
            tagmark="";
            setParam();
        })
        // 左边隐藏礼物点击效果
        $(".content_left_gift_type1").on("click",function(){
            $(".content_left_gift_02").removeClass("content_left_gift_02_add");
            $(this).addClass("content_left_gift_02_add");
            // $(".content_left_gift_blackbg_all").hide();
            giftId = $(this).attr('gid');
            giftType = 0;
            $(".giftTitle").html(giftJson[giftId].title);
            flag=1;
        })
        // 左边隐藏礼物鼠标经过效果
        $(".content_left_gift_02").on("mouseover",function(){
            $(".gift_pirce_box").hide();
            $(this).find(".gift_pirce_box").show();
        })
        $(".content_left_gift_02").on("mouseleave",function(){
            $(".gift_pirce_box").hide();
        })
        var flag=1;
        $(".gift_test_box").on("click",function(){
            if(flag==1){
                // $(".content_left_gift_blackbg_all").show();
                flag=0;
            }else{
                // $(".content_left_gift_blackbg_all").hide();
                flag=1;
            }

        })
        //礼物数量增加的隐藏显示
        var num=1;
        $(".top_kong_hover_box").on("click",function(){
            if(num==1){
                $(".number_gift_bigbox").show();
                num=0;
            }else{
                $(".number_gift_bigbox").hide();
                num=1;
            }
        })
        $(".number_gift_box li").on("click",function(){
            $(".number_gift_box li").removeClass("li_add");
            $(this).addClass("li_add");
            $(".number_gift_bigbox").hide();
            $("#giftNum").val(parseInt($(this).html()));
            num=1;
        })
        //匿名隐藏显示
        var name = 1;
        $(".top_box_give_img").on("click",function(){
            if(name==1){
                $(".anonymous").show();
                name = 0;
            }else{
                $(".anonymous").hide();
                name = 1;
            }
        })
        var flog=true;
        $(".click_box").on("click",function(){
            if(flog==true){
                $(".click_hover").show();
                $(".click").hide();
                flog=false;
                giftAnonymous = 1;
            }else{
                $(".click").show();
                $(".click_hover").hide();
                flog=true;
                giftAnonymous = 0;
            }
        })
        // 弹窗关闭
        $(".close_btn").on("click",function(){
            initDisplay();
            clearInterval(listenWXInterval)
        })
        // 支付选择方式
        $(".alipay_box").on("click",function(){
            var type = $(this).attr("type");
            if (type == 1) {
                $("#orderPayUrl").attr('href', alipay);
            } else {
                $("#orderPayUrl").attr('href', wechat);
            }

            $(".alipay_hover").hide();
            $(this).find(".alipay_hover").show();
            $(".alipay").show();
            $(this).find(".alipay").hide();
        })
        $(".content_input_time").on("click",function(){
            $(".table_time").show();
        });
        //加载问答
        function loadQuestionAnswer() {
            $.ajax({
                url: "https://y.tuwan.com/m/Teacher/answers/teacherid/"+ teacherid,
                type: "get",
                dataType: "jsonp",
                success: function (obj){
                    var data = obj.data;
                    var str = '';
                    for (var i = 0; i < data.length; i++){
                        var isbuy = data[i].answer ? '<div class="see_text_btned mt10">己查看</div>' : '<div class="see_text_btn mt10" value="'+ data[i].id +'">1元查看</div>';
                        var answer = data[i].answer ? data[i].answer : '******';
                        str += '<div class="question_box">';
                        str += '<div class="fl answer_box">';
                        str += '<div class="question"><img src="picture/question.png">&nbsp;&nbsp;问：'+ data[i].question +'</div>';
                        str += '<div class="answer"><img src="picture/answer.png">&nbsp;&nbsp;答：'+ answer +'</div>';
                        str += '</div>';
                        str += '<div class="fl content_left_bttom_see_box">';
                        str += '<div class="see_img_box"><img src="picture/see.png">&nbsp;&nbsp;'+ data[i].view +'</div>';
                        str += isbuy
                        str += '</div>';
                        str += '<div class="clearfix"></div>';
                        str += '</div>';
                    }

                    $(".question_bigbox").html(str);

                    //购买问题
                    $(".see_text_btn").click(function(){
                        if (uid == 0) { //未登录
                            $('#index_pup_box').show();
                            return;
                        }

                        payValue = $(this).attr('value');
                        $('.pop_up_box').show();
                        $('.payment_box2 .money_pirce').html('¥ 1');
                        $('.payment_box2 .sure_btn_warn').html('');
                        $('.payment_box2').show();

                        payType = 0;
                        payWhere = 1;

                        $(".payfor_wechat").html('使用微信支付');
                        $('.payment_box2').find('img:eq(0)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_01_select.png');
                        $('.payment_box2').find('img:eq(1)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_02.png');
                        $('.payment_box2').find('img:eq(2)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_03.png');

                        var aid = teacherid +"|"+ payValue;
                        var payurl = "https://t.tuwan.com/play/wechat/"+ aid +"/?appid=2102";
                        $('.payment_box2').find('.sure_btn_a').attr("href", payurl);
                        $('.payment_box2').find('.sure_btn_a').attr("target", "_blank");
                    });
                }
            })
        };
        $(".payfor_01").click(function() {
            payType = $(this).attr('value');
            if (payType == 0) {
                $(".payfor_wechat").html('使用微信支付');
                $(this).parent().find('img:eq(0)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_01_select.png');
                $(this).parent().find('img:eq(1)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_02.png');
                $(this).parent().find('img:eq(2)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_03.png');

                if (payWhere == 1) { //查看问题
                    var aid = teacherid +"|"+ payValue;
                    var payurl = "https://t.tuwan.com/play/wechat/"+ aid +"/?appid=2102";
                    $(this).parent().find('.sure_btn_a').attr("href", payurl);
                    $(this).parent().find('.sure_btn_a').attr("target", "_blank");
                } else if(payWhere == 3) { //微信
                    var aid = teacherid;
                    var payurl = "https://t.tuwan.com/play/wechat/"+ aid +"/?appid=2104";
                    $(this).parent().find('.sure_btn_a').attr("href", payurl);
                    $(this).parent().find('.sure_btn_a').attr("target", "_blank");
                }
            } else if (payType == 1) {
                $(".payfor_wechat").html('使用支付宝支付');
                $(this).parent().find('img:eq(0)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_01.png');
                $(this).parent().find('img:eq(1)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_02_select.png');
                $(this).parent().find('img:eq(2)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_03.png');

                if (payWhere == 1) { //查看问题
                    var aid = teacherid +"|"+ payValue;
                    var payurl = "https://pay.tuwan.com/?type=alipay&aid="+ aid +"&typeid=2102";
                    $(this).parent().find('.sure_btn_a').attr("href", payurl);
                    $(this).parent().find('.sure_btn_a').attr("target", "_blank");
                } else if(payWhere == 3) { //微信
                    var aid = teacherid;
                    var payurl = "https://pay.tuwan.com/?type=alipay&aid="+ aid +"&typeid=2104";
                    $(this).parent().find('.sure_btn_a').attr("href", payurl);
                    $(this).parent().find('.sure_btn_a').attr("target", "_blank");
                }
            } else if (payType == 2) {
                $(".payfor_wechat").html('使用余额支付');
                $(this).parent().find('img:eq(0)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_01.png');
                $(this).parent().find('img:eq(1)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_02.png');
                $(this).parent().find('img:eq(2)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_03_select.png');

                if (payWhere == 1) { //查看问题
                    var aid = teacherid +"|"+ payValue;
                    var payurl = "https://pay.tuwan.com/?type=money&aid="+ aid +"&typeid=2102";

                    $(this).parent().find('.sure_btn_a').attr("href", "javascript:payMoney('"+ payurl +"', 0);");
                    $(this).parent().find('.sure_btn_a').attr("target", "");
                } else if(payWhere == 3) { //微信
                    var aid = teacherid;
                    var payurl = "https://pay.tuwan.com/?type=money&aid="+ aid +"&typeid=2104";

                    $(this).parent().find('.sure_btn_a').attr("href", "javascript:payMoney('"+ payurl +"', 0);");
                    $(this).parent().find('.sure_btn_a').attr("target", "");
                }
            }
        });
        $(".sure_btn_a").click(function() {
            if (payType != 2) {
                $(".pop_up_bigbox").show();

                successUrl = payWhere;
                payComfirm();
                $(".pay_fail").show();

                $('.pop_up_box').hide();
                $('.payment_box').hide();
            }
        });
        //点赠送直接余额支付
        $(".top_box_give").click(function() {
            if (uid == 0) { //未登录
                $('#index_pup_box').show();
                return;
            }

            giftNum = $("#giftNum").val();
            if (!$.isNumeric(giftNum)) {
                alert("请输入正确的礼物数量");
                return;
            }
            giftNum = parseInt(giftNum);
            if (giftNum < 1) {
                alert("请输入正确的礼物数量");
                return;
            }

            if (giftId == 0) {
                alert("请选择需赠送礼物");
                return;
            }

            fromType = 1;
            var pay = false;
            if (giftType!=0 && giftId>=5) {
                if (confirm("您确认赠送导师此礼物？")) {
                    pay = true;
                    isAlertBiaoBai = true;
                } else {
                    pay = false;
                }
            } else {
                pay = true;
            }

            if (pay) {
                var checked = $("input[name='anonymous']").prop("checked");
                var anonymous = checked ? 1 : 0;

                payWhere = 2; //礼物赠送
                if (giftType == 0) {
                    var aid = teacherid +"|"+ giftId +"|"+ giftNum +"|"+ anonymous;
                    var payurl = "https://pay.tuwan.com/?type=money&aid="+ aid +"&typeid=2103";
                    $(".pay_select_box .recharge_new_left_btn").attr('url', payurl);

                    var payurl = "https://y.tuwan.com/m/Diamond/gift?id="+ giftId +"&num="+ giftNum +"&uid="+ teacherid +"&anonymous="+ anonymous;
                    $(".pay_select_box .recharge_new_right_btn").attr('url', payurl);

                    $(".pay_select_box").show();
                    $(".pop_up_box").show();
                } else {
                    var payurl = "https://y.tuwan.com/m/Teacher/giveGift?giftid="+ giftId +"&teacherid="+ teacherid +"&num="+ giftNum +"&anonymous="+ anonymous +"&worth="+ worth;
                    payMoney(payurl, 1);
                }


            }
        });
        //赠送点击
        $(".give_btn").click(function(){
            giftNum = $('.pop_for_box .add_left_box .add_text').html();
            if (!$.isNumeric(giftNum)) {
                alert("请输入正确的礼物数量");
                return;
            }
            giftNum = parseInt(giftNum);
            if (giftNum < 1) {
                alert("请输入正确的礼物数量");
                return;
            }

            if (giftId2 == 0) {
                alert("请选择需赠送礼物");
                return;
            }

            fromType = 0;
            payWhere = 2; //礼物赠送
            var aid = teacherid +"|"+ giftId2 +"|"+ giftNum +"|"+ giftAnonymous;
            var payurl = "https://pay.tuwan.com/?type=money&aid="+ aid +"&typeid=2103";
            $(".pay_select_box .recharge_new_left_btn").attr('url', payurl);

            var payurl = "https://y.tuwan.com/m/Diamond/gift?id="+ giftId2 +"&num="+ giftNum +"&uid="+ teacherid +"&anonymous="+ giftAnonymous;
            $(".pay_select_box .recharge_new_right_btn").attr('url', payurl);

            initDisplay();
            $(".pay_select_box").show();
            $(".pop_up_box").show();
        });
        //下单约
        $(".money_pocket_bg").click(function() {
            if (uid == 0) { //未登录
                $('#index_pup_box').show();
                return;
            }

            // 离线不操作
            if($(this).hasClass("money_pocket_bg_offline")){

                return;
            }
            setQqDisplay();

            packageid = 0;
            // $(".form_datetime").val('');
            $("#shijian").html('');
            $('.form_datetime').val(startDate);
            get_play_list(changeDateFromat(startDate))
            // $('.table_time table td.no_td_add:last-child')
            // setDateData(14)
            $("#hour_").html(1);
            $('.about_box1').show();
            $('.pop_up_bigbox').show();

            $('.about_box1 .order_name_box .order_test_lol img').attr("src", gameIcon);
            $('.about_box1 .order_name_box .service_name').html(gameTitle);
            $('.about_box1 #currmoney').html('<img src="picture/order_cost_play.png">账户余额：'+ money +'<a href="https://t.tuwan.com/play/recharge/" target="_blank" title=""><span>去充值</span></a>');

            isPay99 = false;

            text_();

        });
        function changeDateFromat(date){
            var dates=date.split('-')
            var day=""
            var mouth=""
            var finalDate = ""
            if(dates[2]<10){
                day=dates[2][1]
            }else {
                day=dates[2]
            }
            if(dates[1]<10){
                mouth=dates[1][1]
            }else {
                mouth=dates[1]
            }
            finalDate = dates[0]+"-"+mouth+"-"+day
            return finalDate
        }
        //9.9体验下单
        $(".money_pocket_small").click(function() {
            if (uid == 0) { //未登录
                $('#index_pup_box').show();
                return;
            }
            setQqDisplay();

            var oDate = new Date();
            var year = oDate.getFullYear();
            var month = oDate.getMonth()+1;
            var day = oDate.getDate();
            var getHours = oDate.getHours();
            var getMinutes = oDate.getMinutes();

            var dates = year +"年"+ month +"月"+ day +"日 "+ getHours +":"+ getMinutes;
            $('.about_box2 .order_name_box .order_test_lol img').attr("src", gameIcon);
            $('.about_box2 .order_name_box .service_name').html(gameTitle);
            $('.about_box2 .order_name_box .order_information_title').html('<img src="picture/order_time.png">下单时间：'+ dates);
            $('.about_box2 #currmoney2').html('<img src="picture/order_cost_play.png">账户余额：'+ money +'<a href="https://t.tuwan.com/play/recharge/" target="_blank" title=""><span>去充值</span></a>');
            $('.about_box2 #order_unit').html('局');

            isPay99 = true;

            packageid = 1001;


            var yhprice = $("#pprice99").attr("price");
            if (typeof(yhprice) == "undefined") {
                yhprice = 0;
            }
            listen99price(yhprice);


            $(".pop_up_bigbox").show();
            $(".about_box2").show();
        })
        $(".form_datetime").datetimepicker({
            language: 'zh-CN',
            startView: 2,
            minView: 2,
            autoclose:true,
            startDate: startDate,
            endDate: endDate,
            format:"yyyy-mm-dd"
        });
        // $('#datetimepicker').datetimepicker('setStartDate', startDate);
        $('#datetimepicker').val(startDate);
        $("#shijian").on('click', function(event) {
            if($('.form_datetime').val() != ''){
                $('.table_time').show();
                $('.table_time table td').each(function(){
                    if($(this).attr("class") !== 'no_td_add' && $(this).attr("class") !== 'nos_td_add'){
                        $(this).click(function() {
                            setDateData($(this));
                        });
                    }
                })
            }else{
                $('.table_time').hide();
                return false;
            }
        })
        //现金支付
        $('.sure_leftbtn_count').on('click',function(event){
            AddRecord('order-up-btn');
        })
        //余额支付
        $('.sure_rightbtn_count').on('click',function(event){
            AddRecord('tuwanpay');
        })
        $('.sure_pay').click(function() {
            $(".order_payfor").hide();
            $(".pay_fail").show();
        });
        // 购买弹窗
        $('.add_left2').click(function(){
            if($('.add_text2').html()*1>1){
                $('.add_text2').html($('.add_text2').html()*1-1);
                $('.pop_for_box .play_coins span').html(accMul(giftJson[giftId2].diamond, parseInt($('.add_text2').html())) +'钻石');
            }
        })
        $('.add_right2').click(function(){
            $('.add_text2').html($('.add_text2').html()*1+1);
            $('.pop_for_box .play_coins span').html(accMul(giftJson[giftId2].diamond, parseInt($('.add_text2').html())) +'钻石');
        })
        //加载列多评论
        $('.see_more_btn').click(function(){
            var that = $(this);
            var page = that.attr('page')*1;
            // currentPage++;
            totalPage = that.attr('totalpage')*1;
            that.attr('disabled', true);
            if (page > totalPage) {
                return;
            }
            loadTagComment(page, tagmark, function(html, count){
                that.parent().parent().find('.divCommentList').append(html);
                that.attr('disabled', false);
                that.attr('page', page+1);
                // that.attr('totalpage', count);
                if (totalPage<=page) {
                    that.hide();
                }
                else{
                    that.show();
                }
            })
        })
        function loadTagComment(page, tag, callback){
            var tagParam = "";
            if(tag != ""){
                tagParam = "&packageid=" + tag
            }
            var url = "https://api.tuwan.com/playteach/?type=play&data=commentlist&format=jsonp&id="+ tinfoid +"&page="+ page + tagParam;

            $.ajax({
                url: url,
                type: "get",
                dataType: "jsonp",
                success: function (obj){
                    $('#page').val(page);
                    var myobj1 = obj;
                    if (typeof obj == 'string') {
                        myobj1=jQuery.parseJSON(obj);
                    }
                    var myobj=myobj1.list;//eval(myobj1.list);
                    var count = myobj1.count;
                    var str = '';
                    for(var g = 0; g < myobj.length; g++){
                        var liangcode = '';
                        if(myobj[g].Comanonymous == 1){
                            avatar = 'https://res.tuwan.com/templet/play/m/images/boy.jpg';
                            unames = '匿名用户';
                        }else{

                            if(myobj[g].liangcode>0){
                                var liangcode ="";
                                if(myobj[g].lianglevel==1){
                                    liangcode = '<div class="fl"><div class="top10"  style="color:#ac5807;"><img class="topliangimg" src="picture/liangplus_vip.png"><div class="liangcode"><span class="liangcodetext">豪 </span>'+myobj[g].liangcode+'</div></div></div>';
                                }else{
                                    liangcode = '<div class="fl"><div class="top10"><img class="topliangimg" src="picture/liangplus.png"><div class="liangcode"><span class="liangcodetext">靓 </span>'+myobj[g].liangcode+'</div></div></div>';
                                }
                            }
                            avatar = myobj[g].avatar;
                            unames = myobj[g].uname;
                        }

                        var replyStr = '';
                        var replyButton = '';

                        if (myobj[g].replyDesc) {
                            replyStr += '<div class="news_bg_box">';
                            replyStr += '<div><img src="picture/news_bg.png"></div>';
                            replyStr += '<div class="news_bg_title_box">';
                            replyStr += '<div class="news_bg_title">回复</div>';
                            replyStr += '<p class="news_bg_text"> '+ myobj[g].replyDesc +'</p>';
                            replyStr += '</div>';
                            replyStr += '</div>';
                        } else {
                            if (myobj[g].showReply && teacherid==uid) {
                                replyButton = '<div class="fr news_hover" cid="'+ myobj[g].id +'" style="margin-top:10px;"><img src="picture/news.png"></div>';
                            }
                        }

                        var starStr = '';

                        for ($i=0; $i<5; $i++) {
                            if($i<=myobj[g].CommentScore-1){
                                starStr += '<img src="picture/9873f4bf55f74f1ba52f84fbf95c0fa8.gif' + ($i+1) + '.png">';
                            }
                            else{
                                starStr += '<img src="picture/star0.png">';
                            }
                        }

                        var vipIcon = '';
                        var vipStr = '';
                        if(myobj[g].Comanonymous == 0){
                            var class3 = 'grade_span';
                            var vipImg = 'https://res.tuwan.com/templet/play/teacher/images/grade.png';
                            if (myobj[g].playvip <= 3) {
                                vipImg = 'https://res.tuwan.com/templet/play/teacher/images/grade.png';
                            } else if(myobj[g].playvip <= 6) {
                                class3 = 'grade_span1';
                                vipImg = 'https://res.tuwan.com/templet/play/teacher/images/grade_02.png';
                            } else if(myobj[g].playvip <= 10) {
                                class3 = 'grade_span2';
                                vipImg = 'https://res.tuwan.com/templet/play/teacher/images/grade_03.png?35';
                            }
                            vipStr = myobj[g].playvip>0 ? '<img src="'+ vipImg +'" class="grade_img"><span class="'+ class3 +'">VIP'+ myobj[g].playvip +'</span>' : '';

                            if (myobj[g].playvip > 0 && myobj[g].playvip <= 4) {
                                vipIcon = '<img src="picture/a6595347b23d4510959f88a7dafde557.gif'+ myobj[g].playvip +'.png?1" class="fl mr15" style="height:20px;">';
                            } else if(myobj[g].playvip <= 10 && myobj[g].playvip >=5) {
                                vipIcon = '<img src="picture/a6595347b23d4510959f88a7dafde557.gif'+ myobj[g].playvip +'.gif?1" class="fl mr15" style="height:20px;">';
                            }
                        }

                        str += '<div class="introduce_01">';
                        str += '<div class="mt30">';
                        str += '<div class="fl introduce_head_img_box"><img src="'+ avatar +'" onerror="imgNoFound(this)"></div>';
                        str += '<div class="fl ml10 mt10">';
                        str += '<div class="fl grade_name mr10">'+ unames +'</div>';
                        str += '<div class="grade_box fl  mr15">'+ vipStr +'</div>'+ vipIcon + liangcode;
                        str += '<div class="fl commentTime">'+ getLocalTime(myobj[g].CommentTime,'') +'</div>';
                        str += '<div class="clearfix"></div>';
                        str += '<div class="mt10 width_grade"> '+ myobj[g].CommentDesc +'</div>';
                        str += '</div>';
                        str += '<div class="fr star_box">'+ starStr +'</div>';
                        str += '<div class="clearfix"></div>';
                        str += '</div>';
                        str += replyStr + replyButton;
                        str += '<div class="clearfix"></div>';
                        str += '</div>';
                    }


                    callback(str, count)

                }
            });
        }
        $("body").delegate('.news_hover', 'click', function(event) {
            var cid = $(this).attr('cid');

            if ($(this).parent().find('.reply_textarea').length > 0) {
                $(this).parent().find('.reply_textarea').remove();
            } else {
                var html = '<div class="reply_textarea"><div class="clearfix"></div>';
                html += '<textarea class="reply_text"></textarea>';
                html += '<input class="reply_cid" value="'+ cid +'" type="hidden"/>';
                html += '<div class="fr reply_btn">回复</div>';
                html += '<div class="clearfix"></div></div>';

                $(this).parent().append(html);

                $(".reply_btn").on('click', function(event) {
                    var cid = $(this).parent().find('.reply_cid').val();
                    var reply = $.trim($(this).parent().find('.reply_text').val());

                    if (reply == '' || reply.length < 5 || reply.length > 50) {
                        alert("请输入合法的回复内容（5-50个字）");
                        return;
                    }
                    var that = $(this);

                    $.ajax({
                        url: "https://y.tuwan.com/m/Content/commentReply?id="+ cid +"&reply="+ encodeURIComponent(reply),
                        type: "get",
                        dataType: "jsonp",
                        success: function (obj){
                            if (obj.error == 0) {
                                var html = '';
                                html += '<div class="news_bg_box">';
                                html += '<div><img src="picture/news_bg.png"></div>';
                                html += '<div class="news_bg_title_box">';
                                html += '<div class="news_bg_title">回复</div>';
                                html += '<p class="news_bg_text"> '+ reply +'</p>';
                                html += '</div>';
                                html += '</div>';

                                that.parent().parent().append(html);
                                that.parent().parent().find('.news_hover').remove();
                                that.parent().remove();

                            } else {
                                alert("评论己回复或非法请求");
                            }
                        }
                    });
                })
            }
        })
        //微信查看购买
        $(".wechat_box").click(function() {
            if (uid == 0) { //未登录
                $('#index_pup_box').show();
                return;
            }

            payValue = $(this).attr('value');
            $('.pop_up_box').show();
            $('.payment_box2 .money_pirce').html('¥ 66');
            $('.payment_box2 .sure_btn_warn').html('');
            $('.payment_box2').show();

            payType = 0;
            payWhere = 3;

            $(".payfor_wechat").html('使用微信支付');
            $('.payment_box2').find('img:eq(0)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_01_select.png');
            $('.payment_box2').find('img:eq(1)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_02.png');
            $('.payment_box2').find('img:eq(2)').attr('src', 'https://res.tuwan.com/templet/play/teacher/images/payfor_03.png');

            var aid = teacherid;
            var payurl = "https://t.tuwan.com/play/wechat/"+ aid +"/?appid=2104";
            $('.payment_box2').find('.sure_btn_a').attr("href", payurl);
            $('.payment_box2').find('.sure_btn_a').attr("target", "_blank");
        })
        $(".recharge_left_btn").click(function() {
            initDisplay();
        })
        $(".express_popup_box1 .no_express").click(function() {
            cancelConfession();
        })
        $(".express_popup_box1 .sure_express").click(function() {
            setConfession();
        })
        $(".express_popup_box2 .no_express").click(function() {
            cancelNaming();
        })
        $(".express_popup_box2 .sure_express").click(function() {
            setNaming();
        })
        $(".top_follow").click(function() {
            if (uid == 0) { //未登录
                $('#index_pup_box').show();
                return;
            }
            setAttention();
        })
        $(".top_follow_ed").on("mouseover",function(){
            if (aCancel) {
                return;
            }
            $(".top_follow").hide();
            $(".top_follow_ed").hide();
            $(".top_follow_no").show();
        })
        $(".top_follow_no").click(function() {
            cancelAttention();
        })
        $(".top_follow_no").on("mouseout",function(){
            if (aCancel) {
                return;
            }
            $(".top_follow").hide();
            $(".top_follow_ed").show();
            $(".top_follow_no").hide();
        })
        //分享
        $(".qq_class").on("click", function() {
            var url = "https://connect.qq.com/widget/shareqq/index.html?url=https%3A%2F%2Fwx.tuwan.com%2Fyuewan%2Fcontent%3Fid%3D35077&site=tuwan&iframe=true&showcount=0&desc=嘴硬&summary=&title="+ encodeURIComponent('嘴硬') +"&pics=https://ucavatar.tuwan.com/data/avatar/001/35/59/90_avatar_middle.jpg?random=20181229&style=203&width=19&height=22";
            window.open(url,'newwindow','height=400,width=400,top=100,left=100');
        })
        $(".qzone_class").on("click", function() {
            var url = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+ location.href +"&title="+ encodeURIComponent('嘴硬') +"&site=tuwan&pics=https://ucavatar.tuwan.com/data/avatar/001/35/59/90_avatar_middle.jpg?random=20181229&desc=嘴硬";
            window.open(url,'newwindow','height=400,width=400,top=100,left=100');
        })
        $(".weibo_class").on("click", function() {
            var url = "https://v.t.sina.com.cn/share/share.php?&appkey=895033136?url=https%3A%2F%2Fwx.tuwan.com%2Fyuewan%2Fcontent%3Fid%3D35077&title="+ encodeURIComponent('嘴硬') +"&content=utf-8&pic=https://ucavatar.tuwan.com/data/avatar/001/35/59/90_avatar_middle.jpg?random=20181229";
            window.open(url,'newwindow','height=400,width=400,top=100,left=100');
        })
        $(window).scroll(function(){
            var ling = $(document).scrollTop();
            if(ling>0){
                $(".fixed-nav-cell").show();
            }else{
                $('.fixed-nav-cell').hide();
            }
        })
        // 左边隐藏礼物增加切换
        $(".content_left_giftlist_nav").on("click",function(){
            var n=$(".content_left_giftlist_nav").index(this);
            $("[data-desc='sp']").css("color","#ff593e")
            $(".content_left_giftlist_nav").removeClass("content_left_giftlist_nav_add");
            $(this).addClass("content_left_giftlist_nav_add");
            if($(this).attr("data-desc")=="sp"){
                $(this).css("color","white")
            }
            $(".content_left_giftlist").hide();
            $(".content_left_giftlist").eq(n).show();
        })
        $(".content_left_magnifier_img").click(function(){
            // console.log($(this).parent().parent())
            $(this).parent().parent().find(".fancybox").trigger("click");//模拟执行id=a的事件
        });
        $(".pay_select_box .recharge_new_left_btn").click(function() {
            payMoney($(this).attr('url'), fromType);
        });
        $(".pay_select_box .recharge_new_right_btn").click(function() {
            payDiamond($(this).attr('url'), fromType);
        });
        //loadQuestionAnswer();
        setParam();
        setHours();
        loadCharm();
        loadGiftScroll();
        setHaveGift();
        // setOrderGift();
        loadUserGift();
        loadTeacherWx();
        checkConfession();
        checkNaming();
        checkAttention();
        $('.fancybox').fancybox();
        $("input[name='anonymous']").prop("checked", false);
    })
    $(document).bind('click', function(e) {
        var e = e || window.event; //浏览器兼容性
        var elem = e.target || e.srcElement;
        while (elem) { //循环判断至跟节点，防止点击的是div子元素
            if ((elem.id && elem.id == 'table_time') || (elem.id && elem.id == 'shijian') || (elem.className && elem.className == 'no_td_add')) {
                return;
            }
            elem = elem.parentNode;
        }
        $('.table_time').css('display', 'none'); //点击的不是div或其子元素
    });
    //数据这块
    $.ajax({
        url: "https://api.tuwan.com/mobileplay/?data=teach_gift_recommend&format=jsonp",
        type: "get",
        dataType: "jsonp",
        success: function (obj){
            var uids=obj["uids"];
            if($.inArray(teacherid+"",uids)>-1){
                $(".plutocrat_rick_01").show();
            }else{
                $(".plutocrat_rick_01").hide();
            }
        }
    })
    //加法
    function accAdd(arg1, arg2) {
        var r1, r2, m;
        try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }
        try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 }
        m = Math.pow(10, Math.max(r1, r2))
        return (arg1 * m + arg2 * m) / m
    }
</script>
<script type="text/javascript" src="/js/jquery.fancybox.js"></script>
<!-- 能力检测 -->
<script type="text/javascript" src="/js/rtcsupport.js"></script>
<script type="text/javascript" src="/js/nim_web_sdk_v4.7.0.js"></script>
<script type="text/javascript" src="/js/nim_web_nim_v4.7.0.js"></script>
<script type="text/javascript" src="/js/nim_web_netcall_v4.7.0.js"></script>
<script type="text/javascript" src="/js/nim_web_webrtc_v4.7.0.js"></script>
<!-- <script src="js/jquery-1.12.3.min.js"></script> -->
<script type="text/javascript" src="/js/twim.js"></script>
<style type="text/css">
    .right-float {
        width: 72px;
        text-align: center;
        position: fixed;
        right: 10px;
        bottom: 100px;
        line-height: 0;
        z-index: 9999;
        font-size: 12px;
    }

    .right-float .right-float-main {
        background: #fff;
        padding: 10px 0;
        border-radius: 5px;
        box-shadow: 1px 1px 10px #f0f0f0;
    }

    .right-float .right-float-main p {
        margin: 0;
        padding: 0;
        line-height: 30px;
    }

    .right-float .right-float-main a.right-float-item {
        padding: 4px 0;
        margin-bottom: 10px;
        display: block;
        cursor: pointer;
        position: relative
    }

    .right-float .right-float-main .right-icon {
        height: 38px;
    }

    .right-float .right-float-main .right-kefu {
        background: url(./static/images/kefu_default.png) no-repeat center center;
    }

    .right-float .right-float-main .right-chatroom {
        background: url(./static/images/chatroom_default.png) no-repeat center center;
    }

    .right-float .right-float-main .right-is {
        background: url(./static/images/is_default.png) no-repeat center center;
    }

    .right-float .right-float-main .right-chat {
        height: 36px;
        background: url(./static/images/chat_default.png) no-repeat center center;
    }

    .right-float .right-float-main .right-top {
        height: 18px;
        background: url(./static/images/top_default.png) no-repeat center center;
    }

    .right-float .right-float-main a.right-float-item {
        color: #333;
        text-decoration: none;
    }

    .right-float .right-float-main a.right-float-item:hover p {
        color: #f64662;
    }

    .right-float .right-float-main a.right-float-item:hover .right-kefu {
        background: url(./static/images/kefu_select.png) no-repeat center center;
    }

    .right-float .right-float-main a.right-float-item:hover .right-chatroom {
        background: url(./static/images/chatroom_select.png) no-repeat center center;
    }

    .right-float .right-float-main a.right-float-item:hover .right-is {
        background: url(./static/images/is_select.png) no-repeat center center;
    }

    .right-float .right-float-main a.right-float-item:hover .right-chat {
        height: 36px;
        background: url(./static/images/chat_select.png) no-repeat center center;
    }

    .right-float .right-float-main a.right-float-item:hover .right-top {
        height: 18px;
        background: url(./static/images/top_select.png) no-repeat center center;
    }

    .messageNums {
        display: none;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        background: red;
        color: #fff;
        font-size: 14px;
        text-align: center;
        line-height: 20px;
        position: absolute;
        top: -4px;
        left: 43px;
    }
</style>
<div class="right-float">
    <div>
        <img src="/picture/float_head.png">
    </div>
    <div class="right-float-main">
        <a class="right-float-item" id="dd_kefu_float">
            <div class="right-icon right-kefu"></div>
            <p>咨询客服</p>
        </a>
        <a class="right-float-item" target="_blank" href="https://y.tuwan.com/chatroom">
            <div class="right-icon right-chatroom"></div>
            <p>语音大厅</p>
        </a>
        <!-- <a class="right-float-item" target="_blank" href="https://y.tuwan.com/is">
            <div class="right-icon right-is"></div>
            <p>IS聊天室</p>
        </a> -->
        <a class="right-float-item" id="rightfloat_showchat">
            <div class="messageNums">1</div>
            <div class="right-icon right-chat"></div>
            <p>私信</p>
        </a>
        <a class="right-float-item" href="#">
            <div class="right-icon right-top"></div>
            <p>顶上</p>
        </a>
    </div>
</div>
<div id="div-im-message" style="position: fixed;z-index: 2000; right: -290px; bottom: 20px; background: #fff; border-radius: 10px; width: 220px; min-height: 20px; box-shadow: 0px 0px 100px #b1b1b1; padding:20px; cursor: pointer;">
    <div>
        <div id="div-im-username" style="display: inline-block; color: #ff0000;"></div>
        <div id="div-im-text" style="display: inline-block; max-width: 220px; word-wrap: break-word; color: #666;"></div>
    </div>
</div>
<div id="div-im-content" style="position: fixed; z-index: 2001; left: 0; top: 0; background: rgba(51,51,51,0.5); width: 100%; height: 100%; display: none;">
    <div style="width: 1002px; height: 622px; position: absolute;left: 50%; top: 50%; transform: translate(-50%, -50%); cursor: pointer;">
        <div onclick="document.getElementById('div-im-content').style.display='none';" style="width: 38px; height: 38px; position: absolute; right: -25px; top: -25px; z-index: 99">
            <img src="picture/close.png">
        </div>
        <iframe style="width: 100%; height: 100%" scrolling="no" src=""></iframe>
    </div>

</div>
<script type="text/javascript">
    jQuery(document).ready(function() {
        var unReadCount = 0
        var idArr = []
        var unReadRrr = []
        var cb = {
            onTextMessage: onTextMessage,
            onConnect: function(accid) {

            },
            onSessions: function(sessions) {
                console.info("------ygb----onsessions---");
                console.log(sessions)

                for (var i = 0; i < sessions.length; i++) {
                    idArr.push(sessions[i].id)
                    unReadRrr.push(sessions[i].unread)
                    unReadCount += parseInt(sessions[i].unread)
                    console.log(unReadCount)
                }
                if (unReadCount == 0) {
                    // $('.messageNums').css('display', "none")
                } else {
                    $('.messageNums').html(unReadCount)
                    $('.messageNums').css('display', "block")
                }
            },
            onupdatesession: function(session) {
                console.info("------ygb----onupdatesession---");
                if (idArr.indexOf(session.id) == -1) {
                    unReadCount += parseInt(session.unread)
                    if (unReadCount == 0) {} else {
                        $('.messageNums').html(unReadCount)
                        $('.messageNums').css('display', "block")
                    }
                } else {
                    var index = idArr.indexOf(session.id)
                    unReadRrr[index] = session.unread
                    unReadCount = eval(unReadRrr.join("+"))
                    if (unReadCount == 0) {
                        $('.messageNums').css('display', "none")
                    } else {
                        $('.messageNums').html(unReadCount)
                        $('.messageNums').css('display', "block")
                    }
                }

            }
        }


        function onTextMessage(msg) {
            var type = msg.type;
            if (type == "text") {
                var fromNick = msg.fromNick;
                var text = msg.text;
                var from = msg.from;
                var to = msg.to;

                $("#div-im-username").html(fromNick + " :");
                $("#div-im-text").html(text);

                $("#div-im-message").attr("from", from);
                $("#div-im-message").attr("to", to);

                $("#div-im-message").animate({
                    right: 20
                }, 300);


                setTimeout(function() {
                    $("#div-im-message").animate({
                        right: -290
                    }, 300);
                }, 3000)
            }
        }

        $("#div-im-message").on("click", function() {
            var from = $(this).attr("from");
            $("#div-im-content").show();
            var time = new Date().getTime();
            $("#div-im-content iframe").attr("src", "https://y.tuwan.com/immain_test?v=" + time + "&accid=" + from);
        })

        $("#rightfloat_showchat").on("click", function() {
            $.ajax({
                url: "https://user.tuwan.com/api/action.ashx?t=userinfo",
                type: "get",
                dataType: "jsonp",
                success: function(response) {
                    if (response.code == 0) {
                        var data = response.data,
                            uid = data.uid;
                        if (uid > 0) {
                            var time = new Date().getTime(),
                                accidstr = "",
                                teachername = "";
                            if (window.teacherid) {
                                accidstr = "&accid=" + window.teacherid;
                            }
                            if (window.teacherName) {
                                teachername = "&teachername=" + window.teacherName;
                            }
                            if ($("#div-im-content iframe").attr("src") == "") {
                                $("#div-im-content iframe").attr("src", "https://y.tuwan.com/immain_test?v=" + time + accidstr + teachername);
                            }

                            $("#div-im-content").show();
                        } else {

                        }
                    } else if (response.code == -1) {
                        if ($('#index_pup_box').size() > 0) {
                            $('#index_pup_box').show();
                        }

                    }
                }
            })

        })
        var twim = new window.TWAudio.twIM(cb);
        twim.login();



    })
</script>
<!-- WPA start -->
<script id="qd2852161723ad87209142c456bcb0954de7a16e34d6" src="/js/86b73829669149da8b981d76dcbb16d2.js" charset="utf-8" async defer></script>
<!-- WPA end -->

</body>
</html>
